Skip to content

Commit

Permalink
vfs: fix return type of ioctl_file_dedupe_range
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
djwong authored and torvalds committed Sep 15, 2016
1 parent 4662660 commit 5297e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5297e0f

Please sign in to comment.