Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <darrick.wong@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Darrick J. Wong and committed by
Linus Torvalds
5297e0f0 46626600

+1 -1
+1 -1
fs/ioctl.c
··· 568 568 return thaw_super(sb); 569 569 } 570 570 571 - static long ioctl_file_dedupe_range(struct file *file, void __user *arg) 571 + static int ioctl_file_dedupe_range(struct file *file, void __user *arg) 572 572 { 573 573 struct file_dedupe_range __user *argp = arg; 574 574 struct file_dedupe_range *same = NULL;