Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254033
b: refs/heads/master
c: 6d68617
h: refs/heads/master
i:
  254031: cbd5140
v: v3
  • Loading branch information
Al Viro committed Jun 24, 2011
1 parent 25c7565 commit 813a127
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: dd8544661947ad6d8d87b3c9d4333bfa1583d1bc
refs/heads/master: 6d6861757dfadb7d6aec6bb34acd471210a755f9
14 changes: 8 additions & 6 deletions trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,13 @@ cifs_put_super(struct super_block *sb)
rc = cifs_umount(sb, cifs_sb);
if (rc)
cERROR(1, "cifs_umount failed with return code %d", rc);
if (cifs_sb->mountdata) {
kfree(cifs_sb->mountdata);
cifs_sb->mountdata = NULL;
}
}

static void cifs_kill_sb(struct super_block *sb)
{
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
kill_anon_super(sb);
kfree(cifs_sb->mountdata);
unload_nls(cifs_sb->local_nls);
kfree(cifs_sb);
}
Expand Down Expand Up @@ -729,8 +731,8 @@ cifs_do_mount(struct file_system_type *fs_type,
goto out;

out_super:
kfree(cifs_sb->mountdata);
deactivate_locked_super(sb);
goto out;

out_cifs_sb:
unload_nls(cifs_sb->local_nls);
Expand Down Expand Up @@ -827,7 +829,7 @@ struct file_system_type cifs_fs_type = {
.owner = THIS_MODULE,
.name = "cifs",
.mount = cifs_do_mount,
.kill_sb = kill_anon_super,
.kill_sb = cifs_kill_sb,
/* .fs_flags */
};
const struct inode_operations cifs_dir_inode_ops = {
Expand Down

0 comments on commit 813a127

Please sign in to comment.