X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fyaboot.c;h=66f288b82aea9eaff21c59ed1fd3bf52c26224b5;hp=8a74d7a5de89c1749738dbe775356655968362b0;hb=8e64db245a2d402dc89fa1f68a3789203815b238;hpb=3638d19d001798b1b3dabd486501dd00b6f5b492;ds=sidebyside diff --git a/second/yaboot.c b/second/yaboot.c index 8a74d7a..66f288b 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -471,6 +471,8 @@ static int load_my_config_file(struct boot_fspec_t *orig_fspec) int minlen; packet = prom_get_netinfo(); + if (!packet) + goto out; /* * First, try to match on mac address with the hardware type