From 2ac2d5d5116bc5c3e4e336826ac5e21aed78121f Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Thu, 10 Oct 2024 14:57:41 +0800 Subject: [PATCH] v9fs/client.c:fix struct attach wrong parameter size Summary: Change uint16_t afid -> uint32_t afid in struct v9fs_attach_s See: https://github.com/chaos/diod/blob/master/protocol.md Signed-off-by: chenrun1 --- fs/v9fs/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/v9fs/client.c b/fs/v9fs/client.c index 27b03b1157..65eaeeb957 100644 --- a/fs/v9fs/client.c +++ b/fs/v9fs/client.c @@ -173,7 +173,7 @@ begin_packed_struct struct v9fs_attach_s { struct v9fs_header_s header; uint32_t fid; - uint16_t afid; + uint32_t afid; uint8_t buffer[2 * (V9FS_BIT16SZ + NAME_MAX) + V9FS_BIT32SZ]; } end_packed_struct;