From f9c20fbfeb13840d757d619192826164a7623a32 Mon Sep 17 00:00:00 2001 From: jinlun Date: Sat, 27 May 2023 10:07:27 +0800 Subject: [PATCH] fix the response_length is modified. --- fix-the-bug-for-fb-and-mok-do-some-clean-code.patch | 4 ++-- shim.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fix-the-bug-for-fb-and-mok-do-some-clean-code.patch b/fix-the-bug-for-fb-and-mok-do-some-clean-code.patch index 90e8c51..2d7fdcb 100644 --- a/fix-the-bug-for-fb-and-mok-do-some-clean-code.patch +++ b/fix-the-bug-for-fb-and-mok-do-some-clean-code.patch @@ -122,9 +122,9 @@ index 55f939c..24beac1 100644 + get_result_request_data.FirmwareType = IPMI_FW_SHIM_GRUB; + get_result_request_data.FirmwareDetailType = IPMI_FW_DETAIL_GRUB; + -+ response_length = sizeof(OEM_BMC_GET_RESULT_RESPONSE); -+ ++ // Polling for 7 seconds + while (timeout_ms > 0) { ++ response_length = sizeof(OEM_BMC_GET_RESULT_RESPONSE); + msleep(WAIT_TIME_UNIT); + timeout_ms -= WAIT_TIME_UNIT; + diff --git a/shim.spec b/shim.spec index dd25a5b..fa1e0eb 100644 --- a/shim.spec +++ b/shim.spec @@ -22,7 +22,7 @@ Name: shim Version: 15 -Release: 29 +Release: 30 Summary: First-stage UEFI bootloader ExclusiveArch: x86_64 aarch64 License: BSD @@ -156,6 +156,9 @@ cd .. /usr/src/debug/%{name}-%{version}-%{release}/* %changelog +* Sat May 27 2023 jinlun - 15-30 +- fix the response_length is modified. + * Fri Mar 17 2023 huangzq6 - 15-29 - fix the bug for fb and mok, do some clean code.