nfsd: return error if nfs4_setacl fails
authorJeff Layton <jlayton@kernel.org>
Mon, 7 Nov 2022 11:58:41 +0000 (06:58 -0500)
committerChuck Lever <cel@kernel.org>
Sat, 10 Dec 2022 16:01:11 +0000 (11:01 -0500)
commit01d53a88c08951f88f2a42f1f1e6568928e0590e
tree110a1769c228ef3111a831337512ffac2f2b109e
parent18ebd35b61b4693a0ddc270b6d4f18def232e770
nfsd: return error if nfs4_setacl fails

With the addition of POSIX ACLs to struct nfsd_attrs, we no longer
return an error if setting the ACL fails. Ensure we return the na_aclerr
error on SETATTR if there is one.

Fixes: c0cbe70742f4 ("NFSD: add posix ACLs to struct nfsd_attrs")
Cc: Neil Brown <neilb@suse.de>
Reported-by: Yongcheng Yang <yoyang@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c