]> 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)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:14 +0000 (23:40 +0100)
commitd061b20e5c1a0594a61aa2f2a789c703ac57a344
tree11f1082be503ee5fc77ae34edf2a566163e128bc
parentfa21da1870e6626274c934722801914690b2dd55
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