]> git.sur5r.net Git - u-boot/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)
commitb351ccf11ae5616bba183aedb2c433b97123be4f
tree07571dd727b65a3e5e1dc0b8d3cadbf416b24341
parentc12d8b7d70c695f1c4fe6fb4f1b3913bdbed8c96
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