diff options
author | Steve French <sfrench@us.ibm.com> | 2007-11-05 16:46:10 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-11-05 16:46:10 -0500 |
commit | 63d2583f5a1a0b72fea3f2171f23f0ca8fa556ec (patch) | |
tree | b9dab1514976c462f2d3528f86dd6c3e46fca745 /fs/cifs/xattr.c | |
parent | f1d662a7d5e5322e583aad6b3cfec03d8f27b435 (diff) |
[CIFS] Fix walking out end of cifs dacl
Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/xattr.c')
-rw-r--r-- | fs/cifs/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/xattr.c b/fs/cifs/xattr.c index 12b125ff0bd0..54e8ef96cb79 100644 --- a/fs/cifs/xattr.c +++ b/fs/cifs/xattr.c | |||
@@ -267,7 +267,7 @@ ssize_t cifs_getxattr(struct dentry *direntry, const char *ea_name, | |||
267 | int oplock = FALSE; | 267 | int oplock = FALSE; |
268 | struct cifs_ntsd *pacl = NULL; | 268 | struct cifs_ntsd *pacl = NULL; |
269 | __u32 buflen = 0; | 269 | __u32 buflen = 0; |
270 | if (experimEnabled) | 270 | if (experimEnabled) |
271 | rc = CIFSSMBOpen(xid, pTcon, full_path, | 271 | rc = CIFSSMBOpen(xid, pTcon, full_path, |
272 | FILE_OPEN, GENERIC_READ, 0, &fid, | 272 | FILE_OPEN, GENERIC_READ, 0, &fid, |
273 | &oplock, NULL, cifs_sb->local_nls, | 273 | &oplock, NULL, cifs_sb->local_nls, |
@@ -275,7 +275,7 @@ ssize_t cifs_getxattr(struct dentry *direntry, const char *ea_name, | |||
275 | CIFS_MOUNT_MAP_SPECIAL_CHR); | 275 | CIFS_MOUNT_MAP_SPECIAL_CHR); |
276 | /* else rc is EOPNOTSUPP from above */ | 276 | /* else rc is EOPNOTSUPP from above */ |
277 | 277 | ||
278 | if(rc == 0) { | 278 | if (rc == 0) { |
279 | rc = CIFSSMBGetCIFSACL(xid, pTcon, fid, &pacl, | 279 | rc = CIFSSMBGetCIFSACL(xid, pTcon, fid, &pacl, |
280 | &buflen); | 280 | &buflen); |
281 | CIFSSMBClose(xid, pTcon, fid); | 281 | CIFSSMBClose(xid, pTcon, fid); |