FIGETBSZ: fix compat
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 Apr 2019 23:03:29 +0000 (19:03 -0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:15:56 +0000 (17:15 +0200)
it takes a pointer argument, regular file or no regular file

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/compat_ioctl.c

index e0226b2..a979b7d 100644 (file)
@@ -1036,10 +1036,10 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
        case FICLONERANGE:
        case FIDEDUPERANGE:
        case FS_IOC_FIEMAP:
+       case FIGETBSZ:
                goto found_handler;
 
        case FIBMAP:
-       case FIGETBSZ:
        case FIONREAD:
                if (S_ISREG(file_inode(f.file)->i_mode))
                        break;