diff options
author | Jeff Layton <jlayton@redhat.com> | 2007-11-16 17:21:07 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-11-16 17:21:07 -0500 |
commit | 70fe7dc05596a405ee6a83265f675a544e32f7d8 (patch) | |
tree | 92bbeb52c1f66cdefd556bdd6d5170e751ab457b /fs/cifs/cifs_spnego.c | |
parent | 68bf728a225b7f2045bb501854d6e7695b9b015d (diff) |
[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 <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_spnego.c')
0 files changed, 0 insertions, 0 deletions