NFSv4.2: Always decode the security label
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Oct 2022 21:41:30 +0000 (17:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:18 +0000 (13:32 +0100)
commit4711196ada6bcadce9f543a40e3e848f8e31f9cf
tree4cb3fa23a460b37639e67fe2747c5817a9c5e7d2
parent860b951e92c38ec8d37c94e7950df0dfbb15bbd9
NFSv4.2: Always decode the security label

[ Upstream commit c8a62f440229ae7a10874776344dfcc17d860336 ]

If the server returns a reply that includes a security label, then we
must decode it whether or not we can store the results.

Fixes: 1e2f67da8931 ("NFS: Remove the nfs4_label argument from decode_getattr_*() functions")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4xdr.c