]> git.baikalelectronics.ru Git - uboot.git/commit
part_efi: In is_gpt_valid() check argument validity before allocation
authorTom Rini <trini@konsulko.com>
Tue, 3 Oct 2017 13:38:44 +0000 (09:38 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 16 Oct 2017 13:42:51 +0000 (09:42 -0400)
commit763838264404eacb747d26859933c39053130b0d
tree07571dd727b65a3e5e1dc0b8d3cadbf416b24341
parentde403e8f1a43e3db2cf37ef56d94341cf18bc2ad
part_efi: In is_gpt_valid() check argument validity before allocation

While this goes somewhat against normal coding style we should ensure
that dev_desc is not NULL before we dereference it in allocation of
legacy_mbr.

Reported-by: Coverity (CID: 167292)
Signed-off-by: Tom Rini <trini@konsulko.com>
disk/part_efi.c