|
@@ -209,6 +209,13 @@ static int efi_image_exec ( struct image *image ) {
|
209
|
209
|
goto err_open_protocol;
|
210
|
210
|
}
|
211
|
211
|
|
|
212
|
+ /* Some EFI 1.10 implementations seem not to fill in DeviceHandle */
|
|
213
|
+ if ( loaded.image->DeviceHandle == NULL ) {
|
|
214
|
+ DBGC ( image, "EFIIMAGE %p filling in missing DeviceHandle\n",
|
|
215
|
+ image );
|
|
216
|
+ loaded.image->DeviceHandle = snpdev->handle;
|
|
217
|
+ }
|
|
218
|
+
|
212
|
219
|
/* Sanity checks */
|
213
|
220
|
assert ( loaded.image->ParentHandle == efi_image_handle );
|
214
|
221
|
assert ( loaded.image->DeviceHandle == snpdev->handle );
|