Btrfs: fix typo in send.c
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.
Reported-by David Binderman <[email protected]>
Signed-off-by Josef Bacik <[email protected]>
--- fs/btrfs/send.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/send.c +2 -2
@@ -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