diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-17 09:14:27 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-24 18:39:41 -0400 |
commit | d687ca380f1a8f3043f42efd2403cbe58c846e70 (patch) | |
tree | c18d1ad493a08fbbe2ffcb03a7727f7aa454ff11 /fs/cifs | |
parent | 2c6292ae4be00454882246d07f38cdf15a823c2a (diff) | |
download | op-kernel-dev-d687ca380f1a8f3043f42efd2403cbe58c846e70.zip op-kernel-dev-d687ca380f1a8f3043f42efd2403cbe58c846e70.tar.gz |
cifs: leak on mount if we share superblock
cifs_sb and nls end up leaked...
Acked-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 8f7451f..4162ee4 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -701,6 +701,8 @@ cifs_do_mount(struct file_system_type *fs_type, if (sb->s_fs_info) { cFYI(1, "Use existing superblock"); + unload_nls(cifs_sb->local_nls); + kfree(cifs_sb); goto out_shared; } |