Btrfs: fix access_ok() check in btrfs_ioctl_send()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Jan 2013 08:57:25 +0000 (03:57 -0500)
committerChris Mason <clm@fb.com>
Thu, 12 Dec 2013 15:13:02 +0000 (07:13 -0800)
commit700ff4f095d78af0998953e922e041d75254518b
tree62a52b7a6f5f2eaa91809a0cc5abeac44c4c3f4e
parent467bb1d27c0b783b73e6349304c0d90b5b4f431b
Btrfs: fix access_ok() check in btrfs_ioctl_send()

The closing parenthesis is in the wrong place.  We want to check
"sizeof(*arg->clone_sources) * arg->clone_sources_count" instead of
"sizeof(*arg->clone_sources * arg->clone_sources_count)".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
cc: stable@vger.kernel.org
fs/btrfs/send.c