Skip to content

Commit c04871e

Browse files
bfieldsTrond Myklebust
authored andcommitted
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>
1 parent 3873bc5 commit c04871e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/nfs/nfs4xdr.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,8 +3350,7 @@ static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req,
33503350
attrlen, recvd);
33513351
return -EINVAL;
33523352
}
3353-
if (attrlen <= *acl_len)
3354-
xdr_read_pages(xdr, attrlen);
3353+
xdr_read_pages(xdr, attrlen);
33553354
*acl_len = attrlen;
33563355
} else
33573356
status = -EOPNOTSUPP;

0 commit comments

Comments
 (0)