Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfsd: call cache_put if xdr_reserve_space returns NULL
[ Upstream commit d078cbf ] If not enough buffer space available, but idmap_lookup has triggered lookup_fn which calls cache_get and returns successfully. Then we missed to call cache_put here which pairs with cache_get. Fixes: ddd1ea5 ("nfsd4: use xdr_reserve_space in attribute encoding") Signed-off-by: Guoqing Jiang <[email protected]> Reviwed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information