mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
vmm: vm: Don't panic on kernel load error
Rather than panic()ing when we get a kernel loading error populate the error upwards. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a8ec8f3326
commit
1beb62ed2d
@ -482,7 +482,9 @@ impl Vm {
|
|||||||
)
|
)
|
||||||
.map_err(Error::KernelLoad)?
|
.map_err(Error::KernelLoad)?
|
||||||
}
|
}
|
||||||
_ => panic!("Invalid elf file"),
|
Err(e) => {
|
||||||
|
return Err(Error::KernelLoad(e));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
linux_loader::loader::load_cmdline(
|
linux_loader::loader::load_cmdline(
|
||||||
|
Loading…
Reference in New Issue
Block a user