aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-12-20 14:32:43 +0300
committerSteve French <stfrench@microsoft.com>2018-12-28 10:09:46 -0600
commit34bca9bbe7a81c4b53cacb20e996090ddf371c51 (patch)
tree570d5a169867601b536612a283c491569e140a12 /fs
parent3e80be0158ac67d936e65935db5b07663822c66d (diff)
downloadlinux-k-34bca9bbe7a81c4b53cacb20e996090ddf371c51.tar.gz
cifs: Use kzfree() to free password
We should zero out the password before we free it. Fixes: 3d6cacbb5310 ("cifs: Add DFS cache routines") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/dfs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
index f4e09073bb7db5..cd63c4a70875fd 100644
--- a/fs/cifs/dfs_cache.c
+++ b/fs/cifs/dfs_cache.c
@@ -1127,7 +1127,7 @@ err_free_domainname:
err_free_unc:
kfree(new->UNC);
err_free_password:
- kfree(new->password);
+ kzfree(new->password);
err_free_username:
kfree(new->username);
kfree(new);