Skip to content

Commit 1711fd9

Browse files
Al Virotorvalds
authored andcommitted
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>
1 parent 1163d50 commit 1711fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static unsigned int cache_poll(struct file *filp, poll_table *wait,
921921
poll_wait(filp, &queue_wait, wait);
922922

923923
/* alway allow write */
924-
mask = POLL_OUT | POLLWRNORM;
924+
mask = POLLOUT | POLLWRNORM;
925925

926926
if (!rp)
927927
return mask;

0 commit comments

Comments
 (0)