]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Don't clear capabilities that won't be reset
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 29 Aug 2025 16:02:16 +0000 (09:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:35:36 +0000 (13:35 +0200)
commitf6522f73c458942e58dfa910a9343c6169ef0f11
tree130a5d3796a7c83720cf76f7ff0646f06420daf8
parent6d1b4722c11c0f95fb7a2f486e90abba7562c008
NFSv4: Don't clear capabilities that won't be reset

[ Upstream commit 31f1a960ad1a14def94fa0b8c25d62b4c032813f ]

Don't clear the capabilities that are not going to get reset by the call
to _nfs4_server_capabilities().

Reported-by: Scott Haiden <scott.b.haiden@gmail.com>
Fixes: b01f21cacde9 ("NFS: Fix the setting of capabilities when automounting a new filesystem")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c