diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c index e2e2ef0fa9a0..f4818599c00a 100644 --- a/fs/smb/client/fs_context.c +++ b/fs/smb/client/fs_context.c @@ -1487,6 +1487,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; }