[edk2-devel] Bug #3522 patch

JamesWang [王家明] jameswang at ami.com
Fri Aug 13 12:27:00 UTC 2021


Hi,

Refer to: Bug #3522<https://bugzilla.tianocore.org/show_bug.cgi?id=3522>

There is a problem in RegisterStaticHotkey() of BoardBootOption.c that it still RegisterBootOptionHotkey() for F7 key on Boot0000 if mBootMenuOptionNumber is not assigned.

mBootMenuOptionNumber is not assigned (LoadOptionNumberUnassigned) because error happened in RegisterFvBootOption().

I think we need to check if mBootMenuOptionNumber valid before registering F7.  I have provided a simple patch as attached.

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#79278): https://edk2.groups.io/g/devel/message/79278
Mute This Topic: https://groups.io/mt/84864025/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210813/4110c443/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-F7-key-still-register-Boot0000-if-error.patch
Type: application/octet-stream
Size: 1662 bytes
Desc: 0001-fix-F7-key-still-register-Boot0000-if-error.patch
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210813/4110c443/attachment.obj>


More information about the edk2-devel-archive mailing list