projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1163d50
)
sunrpc: fix braino in ->poll()
author
Al Viro
<viro@ZenIV.linux.org.uk>
Sat, 7 Mar 2015 21:08:46 +0000
(21:08 +0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sun, 8 Mar 2015 19:53:46 +0000
(12:53 -0700)
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: stable@vger.kernel.org
Cc: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/sunrpc/cache.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/cache.c
b/net/sunrpc/cache.c
index 33fb105d4352627319c604bdd03b7c9493f24adf..5199bb1a017e47b1b7503caf8075191dac1ade57 100644
(file)
--- a/
net/sunrpc/cache.c
+++ b/
net/sunrpc/cache.c
@@
-921,7
+921,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;