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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux