]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
cifs: fix another memleak, in cifs_root_iget
authorOskar Schirmer <oskar@scara.com>
Wed, 10 Nov 2010 21:06:13 +0000 (21:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:15 +0000 (13:33 -0800)
commit1fdd366b9de1a1ae1532b1b9bff92124aef04721
tree0bc99d665589b8b3003800be902e1d3983014138
parentbefb3a2d6721ecdc380d2047cffe24419c11fa24
cifs: fix another memleak, in cifs_root_iget

commit a7851ce73b9fdef53f251420e6883cf4f3766534 upstream.

cifs_root_iget allocates full_path through
cifs_build_path_to_root, but fails to kfree it upon
cifs_get_inode_info* failure.

Make all failure exit paths traverse clean up
handling at the end of the function.

Signed-off-by: Oskar Schirmer <oskar@scara.com>
Reviewed-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/inode.c