From: Jeremy Kerr Date: Fri, 6 Sep 2013 03:46:56 +0000 (+0800) Subject: discover/pxe: check for a valid boot option before adding X-Git-Tag: v1.0.0~501 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=15c8cadd1173f681142a3f48319a203d7b917850;hp=15c8cadd1173f681142a3f48319a203d7b917850;p=petitboot discover/pxe: check for a valid boot option before adding If we didn't find any valid boot options in the pxe buffer, we'll call discover_context_add_boot_option with a NULL boot option. This change adds a check before we try to add the boot option, and a test to verify this situation. Signed-off-by: Jeremy Kerr ---