Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11802
b: refs/heads/master
c: 833d304
h: refs/heads/master
v: v3
  • Loading branch information
James Lamanna authored and Linus Torvalds committed Oct 31, 2005
1 parent d342dfe commit 00ef13a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 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: aaa4059bc2dca7fa816624a28db1958c3a22df9b
refs/heads/master: 833d304b22edff5cc687ab7e5549c2f0dcdd951a
25 changes: 9 additions & 16 deletions trunk/fs/reiserfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,12 +1024,8 @@ static int reiserfs_parse_options(struct super_block *s, char *options, /* strin
strcpy(REISERFS_SB(s)->s_qf_names[qtype], arg);
*mount_options |= 1 << REISERFS_QUOTA;
} else {
if (REISERFS_SB(s)->s_qf_names[qtype]) {
kfree(REISERFS_SB(s)->
s_qf_names[qtype]);
REISERFS_SB(s)->s_qf_names[qtype] =
NULL;
}
kfree(REISERFS_SB(s)->s_qf_names[qtype]);
REISERFS_SB(s)->s_qf_names[qtype] = NULL;
}
}
if (c == 'f') {
Expand Down Expand Up @@ -1158,11 +1154,10 @@ static int reiserfs_remount(struct super_block *s, int *mount_flags, char *arg)
if (!reiserfs_parse_options
(s, arg, &mount_options, &blocks, NULL, &commit_max_age)) {
#ifdef CONFIG_QUOTA
for (i = 0; i < MAXQUOTAS; i++)
if (REISERFS_SB(s)->s_qf_names[i]) {
kfree(REISERFS_SB(s)->s_qf_names[i]);
REISERFS_SB(s)->s_qf_names[i] = NULL;
}
for (i = 0; i < MAXQUOTAS; i++) {
kfree(REISERFS_SB(s)->s_qf_names[i]);
REISERFS_SB(s)->s_qf_names[i] = NULL;
}
#endif
return -EINVAL;
}
Expand Down Expand Up @@ -1940,13 +1935,11 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
brelse(SB_BUFFER_WITH_SB(s));
#ifdef CONFIG_QUOTA
for (j = 0; j < MAXQUOTAS; j++) {
if (sbi->s_qf_names[j])
kfree(sbi->s_qf_names[j]);
kfree(sbi->s_qf_names[j]);
sbi->s_qf_names[j] = NULL;
}
#endif
if (sbi != NULL) {
kfree(sbi);
}
kfree(sbi);

s->s_fs_info = NULL;
return errval;
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/reiserfs/xattr_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ reiserfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)
}
}

if (value)
kfree(value);
kfree(value);

if (!error) {
/* Release the old one */
Expand Down

0 comments on commit 00ef13a

Please sign in to comment.