diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2015-03-08 00:08:46 +0300 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2015-06-19 06:40:22 +0300 |
commit | 464e503591a5172ff7a70d58b00c2ba2c2498c06 (patch) | |
tree | 8e3af97444747a093d0787b7b1d045f36dbcc0ee /net | |
parent | 9d3cfbba07feda2b160d778aa21f81ad65dbd076 (diff) | |
download | linux-464e503591a5172ff7a70d58b00c2ba2c2498c06.tar.xz |
sunrpc: fix braino in ->poll()
commit 1711fd9addf214823b993468567cab1f8254fc51 upstream.
POLL_OUT isn't what callers of ->poll() are expecting to see; it's
actually __SI_POLL | 2 and it's a siginfo code, not a poll bitmap
bit...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 76cb304f3f1a..af4dd9e1fe8f 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -911,7 +911,7 @@ static unsigned int cache_poll(struct file *filp, poll_table *wait, poll_wait(filp, &queue_wait, wait); /* alway allow write */ - mask = POLL_OUT | POLLWRNORM; + mask = POLLOUT | POLLWRNORM; if (!rp) return mask; |