efi_loader: efi_dp_part_node check dp_alloc return value
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Oct 2022 11:36:02 +0000 (13:36 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Oct 2022 20:54:57 +0000 (22:54 +0200)
commit01caf28778bfe04838bd4c548ccc975f5a2f59ee
tree7f16f7b80877f986e66a5c517f76e206a168c580
parent80fadf4af6413f9668f6cfaea39f7a101103ce9e
efi_loader: efi_dp_part_node check dp_alloc return value

dp_alloc() may return NULL. This needs to be caught.

Fixes: 98d48bdf415e ("efi_loader: provide a function to create a partition node")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path.c
lib/efi_loader/efi_disk.c