Skip to content

Commit f3c7bfb

Browse files
committed
Merge branch 'for-chris' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.10
2 parents 57b59ed + 2a36224 commit f3c7bfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fs/btrfs/ioctl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5665,6 +5665,10 @@ long btrfs_ioctl(struct file *file, unsigned int
56655665
#ifdef CONFIG_COMPAT
56665666
long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
56675667
{
5668+
/*
5669+
* These all access 32-bit values anyway so no further
5670+
* handling is necessary.
5671+
*/
56685672
switch (cmd) {
56695673
case FS_IOC32_GETFLAGS:
56705674
cmd = FS_IOC_GETFLAGS;
@@ -5675,8 +5679,6 @@ long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
56755679
case FS_IOC32_GETVERSION:
56765680
cmd = FS_IOC_GETVERSION;
56775681
break;
5678-
default:
5679-
return -ENOIOCTLCMD;
56805682
}
56815683

56825684
return btrfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg));

0 commit comments

Comments
 (0)