diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-21 11:03:25 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-21 11:44:57 +0200 |
commit | eb75927c0de3a6411a625de3d23f25477e54c2d7 (patch) | |
tree | f7c2061004c1169f95cd2129ab5683f86d1f0f12 | |
parent | c9b6e84c9284e5283439135c226638b06ac05193 (diff) | |
download | qboot-eb75927c0de3a6411a625de3d23f25477e54c2d7.zip qboot-eb75927c0de3a6411a625de3d23f25477e54c2d7.tar.gz qboot-eb75927c0de3a6411a625de3d23f25477e54c2d7.tar.bz2 |
protect against no -kernel
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | fw_cfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -70,6 +70,9 @@ void boot_from_fwcfg(void) fw_cfg_select(FW_CFG_SETUP_SIZE); args.vmlinuz_size = kernel_size + fw_cfg_readl_le(); + if (!args.vmlinuz_size) + return; + fw_cfg_select(FW_CFG_SETUP_DATA); fw_cfg_read(args.header, sizeof(args.header)); |