diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-16 22:53:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 11:07:13 -0500 |
commit | 7594bf37ae9ffc434da425120c576909eb33b0bc (patch) | |
tree | ccbb8b447e97b56420e383961a5842f2c4547875 /net/9p/error.c | |
parent | 5dc533c66b131726a1a747eb3c92b20a9ede9219 (diff) | |
download | op-kernel-dev-7594bf37ae9ffc434da425120c576909eb33b0bc.zip op-kernel-dev-7594bf37ae9ffc434da425120c576909eb33b0bc.tar.gz |
9p: untangle ->poll() mess
First of all, NULL ->poll() means "always POLLIN, always POLLOUT", not an error.
Furthermore, mixing -EREMOTEIO with POLL... masks and expecting it to do anything
good is insane - both are arch-dependent, to start with. Pass a pointer to
store the error value separately and make it return POLLERR in such case.
And ->poll() calling conventions do *not* include "return -Esomething". Never
had.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/9p/error.c')
0 files changed, 0 insertions, 0 deletions