nfsd: allow nfsd_file_get to sanely handle a NULL pointer
authorJeff Layton <jlayton@kernel.org>
Fri, 6 Jan 2023 15:33:47 +0000 (10:33 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:21 +0000 (09:20 -0500)
commit70f62231cdfd52357836733dd31db787e0412ab2
tree3195f34c1dcd607aed17b4720af32f51c8ae7753
parentdf24ac7a2e3a9d0bc68f1756a880e50bfe4b4522
nfsd: allow nfsd_file_get to sanely handle a NULL pointer

...and remove some now-useless NULL pointer checks in its callers.

Suggested-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c
fs/nfsd/nfs4state.c