]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit172771584d7073dcd2832d7a846f04a150719de8
tree79231cf32ea2eef39adc0be675ec93a9cd48969e
parentf3bd3e19c5b499a407a958080f36587bca508da2
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: 5dea83578118 ("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