diff options
author | Jeff Layton <jlayton@redhat.com> | 2007-11-16 22:21:07 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-11-16 22:21:07 +0000 |
commit | 70fe7dc05596a405ee6a83265f675a544e32f7d8 (patch) | |
tree | 92bbeb52c1f66cdefd556bdd6d5170e751ab457b /fs/cifs/export.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/export.c')
0 files changed, 0 insertions, 0 deletions