diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-26 14:33:02 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-26 14:33:02 +0300 |
commit | a73881c96d73ee72b7dbbd38a6eeef66182a8ef7 (patch) | |
tree | 79231cf32ea2eef39adc0be675ec93a9cd48969e /include | |
parent | 06b5fc3ad94eebf25d5abc07f84e16b8b33dcf8c (diff) | |
download | linux-a73881c96d73ee72b7dbbd38a6eeef66182a8ef7.tar.xz |
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')
-rw-r--r-- | include/linux/sunrpc/xprtsock.h | 1 |
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 { */ struct socket * sock; struct sock * inet; + struct file * file; /* * State of TCP reply receive |