Skip to contentSkip to conversation

fs: typo fix in legacy_parse_param

PATCH In review Andrei Vagin 2 participants 2 messages Aug 2, 2018 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: typo fix in legacy_parse_param

From: Andrei Vagin <[email protected]>

---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fs_context.c +1 -1
index 90338ef7bb92..a6597a2fbf2b 100644
@@ -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;
Signature · 1 line
2.17.1
#1 lore raw

fs/fs_context.c static int legacy_parse_param(struct fs_context *fc, struct fs_parameter *param) · line 628

Quoted 2 lines · Andrei Vagin
fs/fs_context.c +1 -1
-		size += len;
+		size += param->size;

Folded in, thanks.

David