diff mbox series

[dhowells/mount-api] fs: typo fix in legacy_parse_param

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

Commit Message

Andrey Vagin Aug. 2, 2018, 7:28 a.m. UTC
From: Andrei Vagin <avagin@gmail.com>

Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Howells Aug. 2, 2018, 7:50 a.m. UTC | #1
Andrei Vagin <avagin@openvz.org> wrote:

> -		size += len;
> +		size += param->size;

Folded in, thanks.

David
diff mbox series

Patch

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;