* [PATCH dhowells/mount-api] fs: typo fix in legacy_parse_param
@ 2018-08-02 7:28 Andrei Vagin
2018-08-02 7:50 ` David Howells
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Vagin @ 2018-08-02 7:28 UTC (permalink / raw)
To: David Howells; +Cc: linux-fsdevel, Andrei Vagin
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(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH dhowells/mount-api] fs: typo fix in legacy_parse_param
2018-08-02 7:28 [PATCH dhowells/mount-api] fs: typo fix in legacy_parse_param Andrei Vagin
@ 2018-08-02 7:50 ` David Howells
0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2018-08-02 7:50 UTC (permalink / raw)
To: Andrei Vagin; +Cc: dhowells, linux-fsdevel, Andrei Vagin
Andrei Vagin <avagin@openvz.org> wrote:
> - size += len;
> + size += param->size;
Folded in, thanks.
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-02 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 7:28 [PATCH dhowells/mount-api] fs: typo fix in legacy_parse_param Andrei Vagin
2018-08-02 7:50 ` David Howells
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.