]> 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)
commit174521cf7c6ef73cee1ff4ba2831eec65f4312d6
tree79231cf32ea2eef39adc0be675ec93a9cd48969e
parent35a57fc9f0fa236dabe4bc6730799b4f402b22f7
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: 647f958cae04 ("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