Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2408
b: refs/heads/master
c: 259692b
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Dave Kleikamp committed May 9, 2005
1 parent ca57c06 commit bdf47c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 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: 6f817abc643ec84cf07c99f964d04976212e1fd3
refs/heads/master: 259692bd5a2b2c2d351dd90748ba4126bc2a21b9
6 changes: 2 additions & 4 deletions trunk/fs/jfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ static struct posix_acl *jfs_get_acl(struct inode *inode, int type)
if (!IS_ERR(acl))
*p_acl = posix_acl_dup(acl);
}
if (value)
kfree(value);
kfree(value);
return acl;
}

Expand Down Expand Up @@ -112,8 +111,7 @@ static int jfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)
}
rc = __jfs_setxattr(inode, ea_name, value, size, 0);
out:
if (value)
kfree(value);
kfree(value);

if (!rc) {
if (*p_acl && (*p_acl != JFS_ACL_NOT_CACHED))
Expand Down
6 changes: 2 additions & 4 deletions trunk/fs/jfs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,7 @@ int __jfs_setxattr(struct inode *inode, const char *name, const void *value,
out:
up_write(&JFS_IP(inode)->xattr_sem);

if (os2name)
kfree(os2name);
kfree(os2name);

return rc;
}
Expand Down Expand Up @@ -1042,8 +1041,7 @@ ssize_t __jfs_getxattr(struct inode *inode, const char *name, void *data,
out:
up_read(&JFS_IP(inode)->xattr_sem);

if (os2name)
kfree(os2name);
kfree(os2name);

return size;
}
Expand Down

0 comments on commit bdf47c5

Please sign in to comment.