cifs: fix another memleak, in cifs_root_iget
commit889491211b81de723effd26cbdd4b4b5b3e1e262
authorOskar Schirmer <oskar@scara.com>
Wed, 10 Nov 2010 21:06:13 +0000 (10 21:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:35 +0000 (9 15:55 -0700)
treed4a510dd0b4f176795a84461308fea1c658222e6
parent04333e7c8fcee3212f21b0c431de3f454e3775f3
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>
Signed-off-by: Andi Kleen <ak@linux.intel.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