Btrfs: fix access_ok() check in btrfs_ioctl_send()
commit 700ff4f0 upstream. 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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
Please register or sign in to comment