cifs: fix another memleak, in cifs_root_iget
commit a7851ce7 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>
Showing
Please register or sign in to comment