]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:47 +0000 (10:57 -0400)
commita8a82b772c5f5ff31e1ce3c921bbcccc4ed1ddbf
treec399d7495e0d976d974ec237d330e31dfebd8ebf
parent615abdcb248dd75db8d1d5fb98a2194a21ab8e4b
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/cifs/inode.c