Skip to content

Commit 4040ec4

Browse files
committed
shim_start_image(): fix guid/handle pairing when uninstalling protocols
ardb noted in a comment on PR 656 that his code for shim_start_image() has the protocols and guids mismatched when we're uninstalling the protocol after the image has exited. This fixes those to be paired correctly. Signed-off-by: Peter Jones <pjones@redhat.com>
1 parent 18d98bf commit 4040ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loader-proto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ shim_start_image(IN EFI_HANDLE ImageHandle, OUT UINTN *ExitDataSize,
311311
// image unconditionally.
312312
//
313313
BS->UninstallMultipleProtocolInterfaces(ImageHandle,
314-
&EFI_LOADED_IMAGE_GUID, image,
315-
&SHIM_LOADED_IMAGE_GUID, &image->li,
314+
&SHIM_LOADED_IMAGE_GUID, image,
315+
&EFI_LOADED_IMAGE_GUID, &image->li,
316316
&gEfiLoadedImageDevicePathProtocolGuid,
317317
image->loaded_image_device_path,
318318
NULL);

0 commit comments

Comments
 (0)