vl: Use error_fatal for qcrypto_init

This commit is contained in:
Matt Borgerson 2021-04-18 22:28:40 -07:00
parent bfe010382b
commit f41a56ed12
1 changed files with 1 additions and 4 deletions

View File

@ -2682,10 +2682,7 @@ void qemu_init(int argc, char **argv, char **envp)
/*****************************************************************************/
// init earlier because it's needed for eeprom generation
if (qcrypto_init(&err) < 0) {
error_reportf_err(err, "cannot initialize crypto: ");
exit(1);
}
qcrypto_init(&error_fatal);
//
// FIXME: This is a hack to get QEMU to load correct machine and properties