Files
u-boot-sunxi/lib
Jonathan Gray b6e9e09770 efi_loader: initialise partition_signature memory
Zero partition_signature in the efi_device_path_hard_drive_path
structure when signature_type is 0 (no signature) as required by the
UEFI specification.

This is required so that efi_dp_match() will work as expected
when doing memcmp() comparisons.  Previously uninitialised memory
would cause it not match nodes when it should have when the signature
type was not GUID.

Corrects a problem where the loaded image protocol would not return a
device path with MEDIA_DEVICE causing the OpenBSD bootloader to fail
on rpi_3 and other targets.

v2: Also handle signature_type 1 (MBR) as described in the specification

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Tested-by: Artturi Alm <artturi.alm@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2017-12-01 13:23:02 +01:00
..
2017-05-12 08:37:19 -04:00
2016-02-06 12:00:59 +01:00
2017-04-12 13:28:27 -04:00
2016-04-11 20:48:26 -04:00
2017-10-02 20:31:25 -04:00
2017-04-13 09:41:10 -04:00
2016-05-02 18:37:09 -04:00
2017-11-20 09:58:31 +01:00
2014-10-25 07:02:01 -04:00
2017-10-05 21:31:04 -04:00
2012-04-29 14:14:08 +02:00
2015-07-21 17:39:28 -06:00
2016-11-21 14:07:30 -05:00
2017-05-12 08:37:18 -04:00
2017-08-16 08:30:24 -04:00
2017-06-01 07:03:12 -06:00
2017-11-17 07:15:52 -07:00
2017-08-16 08:22:18 -04:00
2017-09-12 17:58:00 -04:00