mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
3e80be0158
commit
34bca9bbe7
@ -1127,7 +1127,7 @@ err_free_domainname:
|
|||||||
err_free_unc:
|
err_free_unc:
|
||||||
kfree(new->UNC);
|
kfree(new->UNC);
|
||||||
err_free_password:
|
err_free_password:
|
||||||
kfree(new->password);
|
kzfree(new->password);
|
||||||
err_free_username:
|
err_free_username:
|
||||||
kfree(new->username);
|
kfree(new->username);
|
||||||
kfree(new);
|
kfree(new);
|
||||||
|
Loading…
Reference in New Issue
Block a user