OSDN Git Service

cifs: Use kzfree() to free password
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Dec 2018 11:32:43 +0000 (14:32 +0300)
committerSteve French <stfrench@microsoft.com>
Fri, 28 Dec 2018 16:09:46 +0000 (10:09 -0600)
commit34bca9bbe7a81c4b53cacb20e996090ddf371c51
tree570d5a169867601b536612a283c491569e140a12
parent3e80be0158ac67d936e65935db5b07663822c66d
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>
fs/cifs/dfs_cache.c