]> git.ipfire.org Git - thirdparty/linux.git/commit
nfsd: Drop the client reference in client_states_open()
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Sat, 6 Dec 2025 07:38:42 +0000 (15:38 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 25 Dec 2025 02:33:12 +0000 (21:33 -0500)
commit1f941b2c23fd34c6f3b76d36f9d0a2528fa92b8f
tree283fd93a8ae7c25a95cfbb3e5addfbea9ab9ef46
parent8f9e967830ff32ab7756f530a36adf74a9f12b76
nfsd: Drop the client reference in client_states_open()

In error path, call drop_client() to drop the reference
obtained by get_nfsdfs_clp().

Fixes: 78599c42ae3c ("nfsd4: add file to display list of client's opens")
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c