From: Al Viro Date: Sun, 21 Apr 2019 23:03:29 +0000 (-0400) Subject: FIGETBSZ: fix compat X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ee26025f585cc158f257248b6454d10cdaf830a7;p=linux.git FIGETBSZ: fix compat it takes a pointer argument, regular file or no regular file Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index e0226b2138d64..a979b7d1ed900 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -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;