Skip to content

Commit

Permalink
uefi: Fix BopEfiGetDebugDevice handle iteration
Browse files Browse the repository at this point in the history
In issue #149 on GitHub, jparris noticed that BopEfiGetDebugDevice was
trying to iterate over all the handles that responded to the
EfiSerialIoProtocolGuid, but was always calling HandleProtocol on the
first element in the handle array.

The fix is simply to call HandleProtocol using the iterator index.
  • Loading branch information
ccstevens committed Jul 8, 2018
1 parent 5bb001e commit 15dc86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/lib/efi/dbgser.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Return Value:
// Get the serial I/O protocol.
//

EfiStatus = BopEfiHandleProtocol(Handles[0],
EfiStatus = BopEfiHandleProtocol(Handles[HandleIndex],
&BoEfiSerialIoProtocolGuid,
(VOID **)&SerialIo);

Expand Down

0 comments on commit 15dc86c

Please sign in to comment.