diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 9d2576f316895f73d00b975af77a023f185d34ac..ddefddeffd064a7eec0f03dd1710eae67862cea6 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3101,7 +3101,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; }