From: Jeff Layton Date: Fri, 16 Nov 2007 22:21:07 +0000 (+0000) Subject: [CIFS] clean up error handling in cifs_mount X-Git-Tag: v2.6.24-rc4~100^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70fe7dc05596a405ee6a83265f675a544e32f7d8;p=pandora-kernel.git [CIFS] clean up error handling in cifs_mount Move all of the kfree's sprinkled in the middle of the function to the end, and have the code set rc and just goto there on error. Also zero out the password string before freeing it. Looks like this should also fix a potential memory leak of the prepath string if an error occurs near the end of the function. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed