SUNRPC: Fix an Oops in udp_poll()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 26 Feb 2019 11:33:02 +0000 (06:33 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 26 Feb 2019 11:33:02 +0000 (06:33 -0500)
commita73881c96d73ee72b7dbbd38a6eeef66182a8ef7
tree79231cf32ea2eef39adc0be675ec93a9cd48969e
parent06b5fc3ad94eebf25d5abc07f84e16b8b33dcf8c
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>
include/linux/sunrpc/xprtsock.h
net/sunrpc/xprtsock.c