grub/grub-core
John Paul Adrian Glaubitz 25b2b22d54 ieee1275: Fix crash in of_path_of_nvme when of_path is empty
The of_path_of_nvme function (commit 2391d57, ieee1275: add nvme
support within ofpath) introduced a functional regression:

On systems which are not based on Open Firmware but have at
least one NVME device, find_obppath will return NULL and thus
trying to append the disk name to of_path will result in a
crash.

The proper behavior of of_path_of_nvme is, however, to just
return NULL in such cases, like other users of find_obppath,
such as of_path_of_scsi.

Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Reviewed-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2018-03-05 14:36:28 +01:00
..
2017-05-18 21:58:15 +02:00
2017-07-09 21:31:19 +02:00
2018-01-29 12:53:24 +01:00
2015-01-27 17:17:58 +01:00
2016-01-12 21:52:50 +03:00
2017-08-30 21:31:28 +02:00
2017-05-03 13:03:50 +02:00
2017-08-14 16:27:10 +02:00
2017-05-03 12:49:31 +02:00
2013-04-27 02:00:16 +02:00
2013-04-11 21:12:46 +02:00
2013-04-11 21:12:46 +02:00
2013-04-11 21:12:46 +02:00
2013-04-11 21:12:46 +02:00
2017-05-08 22:06:04 +02:00
2017-05-03 12:49:31 +02:00