aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@fieldses.org>2005-10-13 16:54:32 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-19 02:19:41 -0400
commit1d95db8e1688ed54e143a597c5570631a42fa594 (patch)
treeb0b0a667cf9ecccabc26cd7afceed05815066aa6
parent8c233cf9c2ad6f49df753bdce84fddbf00bf6a75 (diff)
NFSv4: Fix acl buffer size
resp_len is passed in as buffer size to decode routine; make sure it's set right in case where userspace provides less than a page's worth of buffer. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index ff378126ccd7..2d9357cf3fc5 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2357,7 +2357,7 @@ static inline ssize_t nfs4_get_acl_uncached(struct inode *inode, void *buf, size
2357 return -ENOMEM; 2357 return -ENOMEM;
2358 args.acl_pages[0] = localpage; 2358 args.acl_pages[0] = localpage;
2359 args.acl_pgbase = 0; 2359 args.acl_pgbase = 0;
2360 args.acl_len = PAGE_SIZE; 2360 resp_len = args.acl_len = PAGE_SIZE;
2361 } else { 2361 } else {
2362 resp_buf = buf; 2362 resp_buf = buf;
2363 buf_to_pages(buf, buflen, args.acl_pages, &args.acl_pgbase); 2363 buf_to_pages(buf, buflen, args.acl_pages, &args.acl_pgbase);