|
@@ -3427,6 +3427,7 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL,
|
|
__u16 rc = 0;
|
|
__u16 rc = 0;
|
|
struct cifs_posix_acl *cifs_acl = (struct cifs_posix_acl *)parm_data;
|
|
struct cifs_posix_acl *cifs_acl = (struct cifs_posix_acl *)parm_data;
|
|
struct posix_acl_xattr_header *local_acl = (void *)pACL;
|
|
struct posix_acl_xattr_header *local_acl = (void *)pACL;
|
|
|
|
+ struct posix_acl_xattr_entry *ace = (void *)(local_acl + 1);
|
|
int count;
|
|
int count;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
@@ -3453,8 +3454,7 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
for (i = 0; i < count; i++) {
|
|
for (i = 0; i < count; i++) {
|
|
- rc = convert_ace_to_cifs_ace(&cifs_acl->ace_array[i],
|
|
|
|
- (struct posix_acl_xattr_entry *)(local_acl + 1));
|
|
|
|
|
|
+ rc = convert_ace_to_cifs_ace(&cifs_acl->ace_array[i], &ace[i]);
|
|
if (rc != 0) {
|
|
if (rc != 0) {
|
|
/* ACE not converted */
|
|
/* ACE not converted */
|
|
break;
|
|
break;
|