Skip to contentSkip to conversation

vfs: fix return type of ioctl_file_dedupe_range

PATCH New Darrick J. Wong 1 participant 1 message Feb 10, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ioctl.c +1 -1
index 116a333..db3d033 100644
@@ -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;