From d0966b800fa4d8de6d255563e9e43719f34938cd Mon Sep 17 00:00:00 2001 From: ligd Date: Thu, 22 Oct 2020 18:18:28 +0800 Subject: [PATCH] usrsock.h: add reserved value to usrsock struct N/A access (struct usrsock_message_req_ack_s)->result can caused unaligend-access, add reserved value to avoid this Change-Id: I6c7d49c57bf898fbf8459b5db9a219122494e254 Signed-off-by: ligd --- include/nuttx/net/usrsock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/net/usrsock.h b/include/nuttx/net/usrsock.h index 166026d062..7ce7199f0e 100644 --- a/include/nuttx/net/usrsock.h +++ b/include/nuttx/net/usrsock.h @@ -243,6 +243,7 @@ begin_packed_struct struct usrsock_message_req_ack_s struct usrsock_message_common_s head; uint8_t xid; + uint8_t reserved; int32_t result; } end_packed_struct;