[U-Boot] part_efi: In is_gpt_valid() check argument validity before allocation

Tom Rini trini at konsulko.com
Tue Oct 17 00:46:36 UTC 2017


On Tue, Oct 03, 2017 at 09:38:44AM -0400, Tom Rini wrote:

> 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 at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/5763f57b/attachment.sig>


More information about the U-Boot mailing list