summaryrefslogtreecommitdiff
path: root/fs/cifs/export.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2007-11-16 22:21:07 +0000
committerSteve French <sfrench@us.ibm.com>2007-11-16 22:21:07 +0000
commit70fe7dc05596a405ee6a83265f675a544e32f7d8 (patch)
tree92bbeb52c1f66cdefd556bdd6d5170e751ab457b /fs/cifs/export.c
parent68bf728a225b7f2045bb501854d6e7695b9b015d (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