]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:26 +0000 (16:19 +0200)
commit31d4aa4584cf5bd49b8a1a26caf2cf6bf174db25
tree0dead384f90c184aceaf024f170164657bd917c1
parent97522085eeec12631a9a3e21893e726e09aaf8ef
nfsd: allow nfsd_file_get to sanely handle a NULL pointer

[ Upstream commit 70f62231cdfd52357836733dd31db787e0412ab2 ]

...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