Skip to content
Snippets Groups Projects
Commit d687ca38 authored by Al Viro's avatar Al Viro
Browse files

cifs: leak on mount if we share superblock


cifs_sb and nls end up leaked...

Acked-by: default avatarPavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2c6292ae
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment