vfs: fix return type of ioctl_file_dedupe_range
authorDarrick J. Wong <[email protected]>
Thu, 15 Sep 2016 03:20:00 +0000 (20:20 -0700)
committerLinus Torvalds <[email protected]>
Thu, 15 Sep 2016 20:29:52 +0000 (13:29 -0700)
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ioctl.c

index 0f56deb24ce6547c1aaa13e6a731779c09047077..26aba0942a98357c824b7ed97df977458ab6def6 100644 (file)
@@ -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;