Skip to content

Commit

Permalink
sunrpc: fix braino in ->poll()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and torvalds committed Mar 8, 2015
1 parent 1163d50 commit 1711fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1711fd9

Please sign in to comment.