From: Darrick J. Wong Date: Thu, 15 Sep 2016 03:20:00 +0000 (-0700) Subject: vfs: fix return type of ioctl_file_dedupe_range X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5297e0f0fe13305a1fc7f01986be0dccd063d57a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git vfs: fix return type of ioctl_file_dedupe_range All the VFS functions in the dedupe ioctl path return int status, so the ioctl handler ought to as well. Found by Coverity, CID 1350952. Signed-off-by: Darrick J. Wong Signed-off-by: Linus Torvalds --- diff --git a/fs/ioctl.c b/fs/ioctl.c index 0f56deb24ce6..26aba0942a98 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -568,7 +568,7 @@ static int ioctl_fsthaw(struct file *filp) return thaw_super(sb); } -static long ioctl_file_dedupe_range(struct file *file, void __user *arg) +static int ioctl_file_dedupe_range(struct file *file, void __user *arg) { struct file_dedupe_range __user *argp = arg; struct file_dedupe_range *same = NULL;