diff options
author | J. Bruce Fields <bfields@redhat.com> | 2020-07-15 20:31:36 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-07-22 23:47:14 +0300 |
commit | 9affa435817711861d774f5626c393c80f16d044 (patch) | |
tree | cdbc309d8b515f478f1595b617911b84141bc028 /net/unix/af_unix.c | |
parent | becd2014923ff259b8155df58199f605dd50cb8f (diff) | |
download | linux-9affa435817711861d774f5626c393c80f16d044.tar.xz |
nfsd4: fix NULL dereference in nfsd/clients display code
We hold the cl_lock here, and that's enough to keep stateid's from going
away, but it's not enough to prevent the files they point to from going
away. Take fi_lock and a reference and check for NULL, as we do in
other code.
Reported-by: NeilBrown <neilb@suse.de>
Fixes: 78599c42ae3c ("nfsd4: add file to display list of client's opens")
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions