diff options
Diffstat (limited to 'fs/cifs/cifsacl.c')
-rw-r--r-- | fs/cifs/cifsacl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index bd75a3b8caff..38d09fa8c1e6 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c | |||
@@ -327,7 +327,7 @@ static int parse_sec_desc(struct cifs_ntsd *pntsd, int acl_len, | |||
327 | group_sid_ptr = (struct cifs_sid *)((char *)pntsd + | 327 | group_sid_ptr = (struct cifs_sid *)((char *)pntsd + |
328 | le32_to_cpu(pntsd->gsidoffset)); | 328 | le32_to_cpu(pntsd->gsidoffset)); |
329 | dacloffset = le32_to_cpu(pntsd->dacloffset); | 329 | dacloffset = le32_to_cpu(pntsd->dacloffset); |
330 | dacl_ptr = (struct cifs_acl *)(char *)pntsd + dacloffset; | 330 | dacl_ptr = (struct cifs_acl *)((char *)pntsd + dacloffset); |
331 | #ifdef CONFIG_CIFS_DEBUG2 | 331 | #ifdef CONFIG_CIFS_DEBUG2 |
332 | cFYI(1, ("revision %d type 0x%x ooffset 0x%x goffset 0x%x " | 332 | cFYI(1, ("revision %d type 0x%x ooffset 0x%x goffset 0x%x " |
333 | "sacloffset 0x%x dacloffset 0x%x", | 333 | "sacloffset 0x%x dacloffset 0x%x", |
@@ -346,7 +346,7 @@ static int parse_sec_desc(struct cifs_ntsd *pntsd, int acl_len, | |||
346 | 346 | ||
347 | if (dacloffset) | 347 | if (dacloffset) |
348 | parse_dacl(dacl_ptr, end_of_acl, owner_sid_ptr, | 348 | parse_dacl(dacl_ptr, end_of_acl, owner_sid_ptr, |
349 | group_sid_ptr, inode); | 349 | group_sid_ptr, inode); |
350 | else | 350 | else |
351 | cFYI(1, ("no ACL")); /* BB grant all or default perms? */ | 351 | cFYI(1, ("no ACL")); /* BB grant all or default perms? */ |
352 | 352 | ||