cifs: fix another memleak, in cifs_root_iget
authorOskar Schirmer <oskar@scara.com>
Wed, 10 Nov 2010 21:06:13 +0000 (21:06 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 11 Nov 2010 03:40:13 +0000 (03:40 +0000)
commita7851ce73b9fdef53f251420e6883cf4f3766534
treecbf63df689b3e28769555f294e69b86bbac9981c
parentebe2e91e000c59aed0300d81815f451c85e0bda6
cifs: fix another memleak, in cifs_root_iget

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>
Cc: stable@kernel.org
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c