Fix memory leaks in cifs_do_mount()
authorSachin Prabhu <sprabhu@redhat.com>
Fri, 29 Jul 2016 21:38:19 +0000 (22:38 +0100)
committerSteve French <smfrench@gmail.com>
Sat, 10 Sep 2016 04:58:06 +0000 (23:58 -0500)
commit4214ebf4654798309364d0c678b799e402f38288
tree489695c51262266b0d75fd2c7d3343ce4a2d48fc
parentbd0b841fee49de421f615cc173ccff063303672f
Fix memory leaks in cifs_do_mount()

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>
fs/cifs/cifsfs.c
fs/cifs/cifsproto.h
fs/cifs/connect.c