Message ID | 20180802072810.3126-1-avagin@openvz.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [dhowells/mount-api] fs: typo fix in legacy_parse_param | expand |
Andrei Vagin <avagin@openvz.org> wrote: > - size += len; > + size += param->size; Folded in, thanks. David
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;