Stefan Roese
8300be612c
efi_loader: Exit in efi_set_bootdev() upon invalid "desc"
...
When trying to load an image from a non-existent USB key, U-Boot v2017.11
crashes on my x86 platform:
=> load usb 0:1 03000000 abc
General Protection
EIP: 0010:[<7b59030d>] EFLAGS: 00010286
Original EIP :[<fff4330d>]
...
This used to work in v2017.09. Testing has shown, that this bug was
introduced with patch 95c5553e
[efi_loader: refactor boot device and
loaded_image handling].
This patch now checks if a valid "desc" is returned from blk_get_dev()
and only continues when "desc" is available. Resulting in this cmd
output (again):
=> load usb 0:1 03000000 abc
** Bad device usb 0 **
Signed-off-by: Stefan Roese <sr@denx.de >
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
Signed-off-by: Alexander Graf <agraf@suse.de >
2017-12-01 13:26:10 +01:00
..
2017-10-25 10:05:06 +02:00
2017-08-16 08:30:24 -04:00
2017-02-08 15:56:28 -05:00
2017-04-12 13:28:27 -04:00
2017-08-16 08:30:24 -04:00
2017-07-03 17:35:28 -04:00
2017-11-29 22:30:50 -05:00
2016-04-11 12:44:38 -04:00
2016-08-02 09:45:39 -07:00
2016-03-14 15:34:50 -06:00
2017-12-01 13:26:10 +01:00
2017-03-14 20:40:23 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-01-24 10:35:55 -05:00
2017-10-02 21:52:18 -04:00
2017-08-16 08:23:32 -04:00
2017-02-08 15:56:26 -05:00
2017-05-10 16:16:09 +02:00
2017-08-16 08:30:24 -04:00
2017-04-04 20:15:10 -06:00
2016-09-27 23:30:18 +02:00
2016-09-09 15:53:14 -04:00
2017-05-22 09:33:49 -04:00
2017-08-16 08:31:11 -04:00
2017-06-16 10:11:42 -04:00
2017-10-04 11:59:44 -04:00
2016-09-23 08:55:58 -04:00
2016-05-02 18:37:09 -04:00
2017-11-16 18:45:05 -07:00
2017-10-16 09:42:51 -04:00
2017-08-16 08:30:24 -04:00
2016-04-18 17:11:36 -04:00
2016-09-23 17:55:42 -04:00
2016-03-17 21:27:37 -06:00
2017-10-23 17:28:11 -04:00
2016-04-01 17:17:40 -04:00
2017-01-20 09:15:24 -05:00
2017-03-28 06:27:54 +02:00
2017-09-10 12:27:43 -04:00
2017-08-16 08:30:24 -04:00
2017-05-12 08:37:38 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-11-05 11:21:35 -05:00
2017-05-12 08:37:38 -04:00
2017-04-14 19:38:57 -06:00
2017-02-08 15:56:28 -05:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:23:32 -04:00
2017-11-15 10:54:06 -08:00
2017-10-02 21:52:18 -04:00
2017-08-16 08:30:24 -04:00
2016-12-02 14:36:02 +01:00
2017-10-16 09:42:51 -04:00
2016-07-25 12:00:05 -04:00
2016-03-14 15:34:50 -06:00
2017-09-15 08:05:10 -04:00
2017-08-26 16:59:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:31:11 -04:00
2017-10-16 09:42:51 -04:00
2017-08-28 07:17:15 -04:00
2016-10-06 20:57:42 -04:00
2017-08-16 08:22:18 -04:00
2017-08-11 15:41:51 -04:00
2017-06-12 08:37:55 -04:00
2017-10-16 09:42:51 -04:00
2017-08-16 08:30:24 -04:00
2017-08-20 09:54:30 -04:00
2017-07-22 22:22:49 -04:00
2017-10-04 11:59:44 -04:00
2017-08-16 08:30:24 -04:00
2017-08-17 16:44:17 +09:00
2017-08-17 16:44:16 +09:00
2017-08-16 08:30:24 -04:00
2017-04-04 20:15:10 -06:00
2017-08-16 08:30:32 -04:00
2016-03-27 09:12:55 -04:00
2017-10-09 08:48:44 -07:00
2017-10-04 11:59:44 -04:00
2017-10-06 11:28:21 -04:00
2017-10-04 11:59:44 -04:00
2017-08-16 08:23:32 -04:00
2017-08-16 08:30:32 -04:00
2017-09-12 10:08:05 +02:00
2017-08-16 08:23:32 -04:00
2017-10-04 11:59:44 -04:00
2017-10-04 11:59:44 -04:00
2017-11-26 02:22:36 +01:00
2017-07-11 10:08:19 -06:00
2017-08-16 08:30:32 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:23:32 -04:00