Skip to content

Commit

Permalink
Address review: use ACE4SIZE (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeagherix committed Nov 29, 2023
1 parent db54930 commit 67f8d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfs_common/nfsacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ convert_nfs41xdr_to_nfs40_acl(u32 *xdrbuf, size_t remaining, struct nfs4_acl *ac
int i;

for (i = 0; i < acl->naces; i++, xdrbuf += NACE41_LEN) {
if (remaining < ACE4_SIZE) {
if (remaining < ACE4SIZE) {
error = -EOVERFLOW;
break;
}
Expand All @@ -488,7 +488,7 @@ convert_nfs41xdr_to_nfs40_acl(u32 *xdrbuf, size_t remaining, struct nfs4_acl *ac
if (error)
break;

remaining -= (NACE41_LEN * sizeof(u32));
remaining -= ACE4SIZE;
}

return error;
Expand Down

0 comments on commit 67f8d88

Please sign in to comment.