diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 90e0c51ac045..63108343124a 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2586,7 +2586,7 @@ cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses) rc = -ENOMEM; kfree(vol->username); vol->username = NULL; - kfree(vol->password); + kzfree(vol->password); vol->password = NULL; goto out_key_put; }