From: Andrei Vagin <avagin@xxxxxxxxx> Signed-off-by: Andrei Vagin <avagin@xxxxxxxxx> --- fs/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs_context.c b/fs/fs_context.c index 90338ef7bb92..a6597a2fbf2b 100644 --- a/fs/fs_context.c +++ b/fs/fs_context.c @@ -625,7 +625,7 @@ static int legacy_parse_param(struct fs_context *fc, struct fs_parameter *param) if (param->type == fs_value_is_string) { ctx->legacy_data[size++] = '='; memcpy(ctx->legacy_data + size, param->string, param->size); - size += len; + size += param->size; } ctx->legacy_data[size] = '\0'; ctx->data_size = size; -- 2.17.1