diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-02-07 17:55:48 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-02-08 18:02:54 +0100 |
commit | 0a061743af93f472687b8c69b0d539d1f12f3fd2 (patch) | |
tree | 3170c2624e96172f2dffa1622bdab8369e88a83b /.gitattributes | |
parent | compat_ioctl: simplify the implementation (diff) | |
download | linux-0a061743af93f472687b8c69b0d539d1f12f3fd2.tar.xz linux-0a061743af93f472687b8c69b0d539d1f12f3fd2.zip |
compat_ioctl: fix FIONREAD on devices
My final cleanup patch for sys_compat_ioctl() introduced a regression on
the FIONREAD ioctl command, which is used for both regular and special
files, but only works on regular files after my patch, as I had missed
the warning that Al Viro put into a comment right above it.
Change it back so it can work on any file again by moving the implementation
to do_vfs_ioctl() instead.
Fixes: 77b9040195de ("compat_ioctl: simplify the implementation")
Reported-and-tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Reported-and-tested-by: youling257 <youling257@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions