grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] ieee1275: Fix crash in of_path_of_nvme when of_path is empty


From: John Paul Adrian Glaubitz
Subject: [PATCH v2] ieee1275: Fix crash in of_path_of_nvme when of_path is empty
Date: Thu, 1 Mar 2018 17:00:27 +0100

Hi!

We have recently backported the upstream changes to Debian's grub2 package
to support modern SPARC hardware for Debian's sparc64 port.

One of the changes introduced a regression on systems with NVME devices which
are not based on Open Firmware. On these systems, find_obppath returns an
empty string and trying to append the disk name to that empty name results
in a crash in of_path_of_nvme.

Fix that by making sure of_path isn't empty and if it is, just return
the disk name in of_path_of_nvme.

Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891773

Thanks,
Adrian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]