blob: af857f4147ede228fdea0057a60ba51c6c8bda58 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 936c857add300f41bc58c300793a0e10b48ff69f Mon Sep 17 00:00:00 2001
2From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
3Date: Mon, 13 Dec 2021 15:25:23 +0000
4Subject: [PATCH 19/24] Use correct buffer size
5
6The comm buffer created has additional 4 bytes length which
7needs to be trimmed. This change will reduce the size of the
8comm buffer to what is expected.
9
10Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
11Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
12---
13 include/mm_communication.h | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/include/mm_communication.h b/include/mm_communication.h
17index e65fbde60d0a..bb9919095649 100644
18--- a/include/mm_communication.h
19+++ b/include/mm_communication.h
20@@ -123,7 +123,7 @@ struct __packed efi_mm_communicate_header {
21 *
22 * Defined in EDK2 as SMM_VARIABLE_COMMUNICATE_HEADER.
23 */
24-struct smm_variable_communicate_header {
25+struct __packed smm_variable_communicate_header {
26 efi_uintn_t function;
27 efi_status_t ret_status;
28 u8 data[];
29@@ -145,7 +145,7 @@ struct smm_variable_communicate_header {
30 * Defined in EDK2 as SMM_VARIABLE_COMMUNICATE_ACCESS_VARIABLE.
31 *
32 */
33-struct smm_variable_access {
34+struct __packed smm_variable_access {
35 efi_guid_t guid;
36 efi_uintn_t data_size;
37 efi_uintn_t name_size;
38--
392.37.1
40