diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 89e810b27a4b..6bd713c6c869 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -1479,6 +1479,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, cifs_parse_mount_err: kfree_sensitive(ctx->password); + ctx->password = NULL; return -EINVAL; }