Skip to contentSkip to conversation

Btrfs: fix typo in send.c

PATCH New Josef Bacik 1 participant 1 message Apr 30, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: fix typo in send.c

A user reported a bug where we do sizeof(*ptr * count) instead of sizeof(*ptr) * count. Fix this.

---
 fs/btrfs/send.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/send.c +2 -2
index ff40f1c..7c8964b 100644
@@ -4587,8 +4587,8 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_)
 	}
 
 	if (!access_ok(VERIFY_READ, arg->clone_sources,
-			sizeof(*arg->clone_sources *
-			arg->clone_sources_count))) {
+			sizeof(*arg->clone_sources) *
+			arg->clone_sources_count)) {
 		ret = -EFAULT;
 		goto out;
 	}
Signature · 1 line
1.7.7.6