]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Fix memory leaks in cifs_do_mount()
authorSachin Prabhu <sprabhu@redhat.com>
Fri, 29 Jul 2016 21:38:19 +0000 (22:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:09 +0000 (14:04 +0200)
commit528d066d3ddd524e84ca037911cee45031b4e517
tree8612260a3ac8ed1dae8bfaf53a131ea326084f00
parent40fb18bddcd4780ae8c106a81312bab9ac0bd28c
Fix memory leaks in cifs_do_mount()

commit 4214ebf4654798309364d0c678b799e402f38288 upstream.

Fix memory leaks introduced by the patch
Fs/cifs: make share unaccessible at root level mountable

Also move allocation of cifs_sb->prepath to cifs_setup_cifs_sb().

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Tested-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/cifs/cifsfs.c
fs/cifs/cifsproto.h
fs/cifs/connect.c