Commit 1711fd9addf214823b993468567cab1f8254fc51

Authored by Al Viro
Committed by Linus Torvalds
1 parent 1163d504ae

sunrpc: fix braino in ->poll()

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -921,7 +921,7 @@
921 921 poll_wait(filp, &queue_wait, wait);
922 922  
923 923 /* alway allow write */
924   - mask = POLL_OUT | POLLWRNORM;
  924 + mask = POLLOUT | POLLWRNORM;
925 925  
926 926 if (!rp)
927 927 return mask;