mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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>
This commit is contained in:
parent
2c6292ae4b
commit
d687ca380f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue