projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cifs: store password in tcon
[firefly-linux-kernel-4.4.55.git]
/
fs
/
cifs
/
misc.c
diff --git
a/fs/cifs/misc.c
b/fs/cifs/misc.c
index 7c3f4b9230d7ffa81244d67ea21a06cfb33c889f..a0513605d7e39ca0449a9ecfaa8f2f46b32a7624 100644
(file)
--- a/
fs/cifs/misc.c
+++ b/
fs/cifs/misc.c
@@
-132,6
+132,10
@@
tconInfoFree(struct cifsTconInfo *buf_to_free)
}
atomic_dec(&tconInfoAllocCount);
kfree(buf_to_free->nativeFileSystem);
+ if (buf_to_free->password) {
+ memset(buf_to_free->password, 0, strlen(buf_to_free->password));
+ kfree(buf_to_free->password);
+ }
kfree(buf_to_free);
}