diff options
author | Scott Mayhew <smayhew@redhat.com> | 2020-07-10 22:33:07 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-07-13 23:28:46 +0200 |
commit | df60446cd1fb487becd1f36f4c0da9e0e523c0cf (patch) | |
tree | 2d392c6211a92f122ed86f533bad8aa089ced951 /net/sunrpc | |
parent | nfsd4: a client's own opens needn't prevent delegations (diff) | |
download | linux-df60446cd1fb487becd1f36f4c0da9e0e523c0cf.tar.xz linux-df60446cd1fb487becd1f36f4c0da9e0e523c0cf.zip |
nfsd: avoid a NULL dereference in __cld_pipe_upcall()
If the rpc_pipefs is unmounted, then the rpc_pipe->dentry becomes NULL
and dereferencing the dentry->d_sb will trigger an oops. The only
reason we're doing that is to determine the nfsd_net, which could
instead be passed in by the caller. So do that instead.
Fixes: 11a60d159259 ("nfsd: add a "GetVersion" upcall for nfsdcld")
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions