mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-10 16:18:03 +07:00
NFSv4: remove obviously bogus comparison from decode_getacl
We just set *acl_len to zero, and attrlen is unsigned, so this comparison is clearly bogus. I have no idea what I was thinking. Fixes a bug that caused getacl to fail over krb5p. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
3873bc50e2
commit
c04871e634
@ -3350,8 +3350,7 @@ static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req,
|
|||||||
attrlen, recvd);
|
attrlen, recvd);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (attrlen <= *acl_len)
|
xdr_read_pages(xdr, attrlen);
|
||||||
xdr_read_pages(xdr, attrlen);
|
|
||||||
*acl_len = attrlen;
|
*acl_len = attrlen;
|
||||||
} else
|
} else
|
||||||
status = -EOPNOTSUPP;
|
status = -EOPNOTSUPP;
|
||||||
|
Loading…
Reference in New Issue
Block a user