aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/xprtsock.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2019-02-26 06:33:02 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-02-26 06:33:02 -0500
commita73881c96d73ee72b7dbbd38a6eeef66182a8ef7 (patch)
tree79231cf32ea2eef39adc0be675ec93a9cd48969e /include/linux/sunrpc/xprtsock.h
parent06b5fc3ad94eebf25d5abc07f84e16b8b33dcf8c (diff)
SUNRPC: Fix an Oops in udp_poll()
udp_poll() checks the struct file for the O_NONBLOCK flag, so we must not call it with a NULL file pointer. Fixes: 0ffe86f48026 ("SUNRPC: Use poll() to fix up the socket requeue races") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/sunrpc/xprtsock.h')
-rw-r--r--include/linux/sunrpc/xprtsock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtsock.h b/include/linux/sunrpc/xprtsock.h
index 458bfe0137f5..b81d0b3e0799 100644
--- a/include/linux/sunrpc/xprtsock.h
+++ b/include/linux/sunrpc/xprtsock.h
@@ -26,6 +26,7 @@ struct sock_xprt {
26 */ 26 */
27 struct socket * sock; 27 struct socket * sock;
28 struct sock * inet; 28 struct sock * inet;
29 struct file * file;
29 30
30 /* 31 /*
31 * State of TCP reply receive 32 * State of TCP reply receive