diff options
-rw-r--r-- | fs/nfs/nfs4xdr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 7c5d70efe720..7e9a840057f2 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -3350,8 +3350,7 @@ static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req, | |||
3350 | attrlen, recvd); | 3350 | attrlen, recvd); |
3351 | return -EINVAL; | 3351 | return -EINVAL; |
3352 | } | 3352 | } |
3353 | if (attrlen <= *acl_len) | 3353 | xdr_read_pages(xdr, attrlen); |
3354 | xdr_read_pages(xdr, attrlen); | ||
3355 | *acl_len = attrlen; | 3354 | *acl_len = attrlen; |
3356 | } else | 3355 | } else |
3357 | status = -EOPNOTSUPP; | 3356 | status = -EOPNOTSUPP; |