]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit431d3c5429e084643da49a2b92adfbdf231f66ea
tree7f16f7b80877f986e66a5c517f76e206a168c580
parent5804edde9dd6b6afb682bfa87942aa26f977d906
efi_loader: efi_dp_part_node check dp_alloc return value

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

Fixes: cca201e10463 ("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