Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346618
b: refs/heads/master
c: 7d3e91a
h: refs/heads/master
v: v3
  • Loading branch information
Sven Wegener authored and Trond Myklebust committed Dec 11, 2012
1 parent 2850d50 commit 8d63b55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c1002100898d03c5c9142ffaf58351c841ab94a
refs/heads/master: 7d3e91a89b7adbc2831334def9e494dd9892f9af
7 changes: 6 additions & 1 deletion trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3937,8 +3937,13 @@ static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu
goto out_free;
}
nfs4_write_cached_acl(inode, pages, res.acl_data_offset, res.acl_len);
if (buf)
if (buf) {
if (res.acl_len > buflen) {
ret = -ERANGE;
goto out_free;
}
_copy_from_pages(buf, pages, res.acl_data_offset, res.acl_len);
}
out_ok:
ret = res.acl_len;
out_free:
Expand Down

0 comments on commit 8d63b55

Please sign in to comment.