mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
nfsd: correctly handle return value from nfsd_map_name_to_*
commit 47c85291d3 upstream.
These functions return an nfs status, not a host_err. So don't
try to convert before returning.
This is a regression introduced by
3c726023402a2f3b28f49b9d90ebf9e71151157d; I fixed up two of the callers,
but missed these two.
Reported-by: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d9d89091ff
commit
63d059e73f
@@ -323,8 +323,8 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
|
||||
READ_BUF(dummy32);
|
||||
len += (XDR_QUADLEN(dummy32) << 2);
|
||||
READMEM(buf, dummy32);
|
||||
if ((host_err = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid)))
|
||||
goto out_nfserr;
|
||||
if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid)))
|
||||
return status;
|
||||
iattr->ia_valid |= ATTR_UID;
|
||||
}
|
||||
if (bmval[1] & FATTR4_WORD1_OWNER_GROUP) {
|
||||
@@ -334,8 +334,8 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
|
||||
READ_BUF(dummy32);
|
||||
len += (XDR_QUADLEN(dummy32) << 2);
|
||||
READMEM(buf, dummy32);
|
||||
if ((host_err = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid)))
|
||||
goto out_nfserr;
|
||||
if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid)))
|
||||
return status;
|
||||
iattr->ia_valid |= ATTR_GID;
|
||||
}
|
||||
if (bmval[1] & FATTR4_WORD1_TIME_ACCESS_SET) {
|
||||
|
||||
Reference in New Issue
Block a user