Skip to content
Snippets Groups Projects
Commit b351ccf1 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@konsulko.com>
parent c12d8b7d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment