]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:03 +0000 (13:10 +0100)
commit02a02eb93cec2a27bc28038998947eb6d5c61338
tree3d748161b85b2a749c718f3eafce8dd95062ed08
parent96e9b4b4eebe55cfc18911763330c3b4217dda80
nfsd: Drop the client reference in client_states_open()

commit 1f941b2c23fd34c6f3b76d36f9d0a2528fa92b8f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c