diff --git a/vl.c b/vl.c index de232b75e6981931c316aec74970e1725c636346..68c3b532bce593cd1f4f452fd1b3077a6c2f2cb9 100644 --- a/vl.c +++ b/vl.c @@ -2102,7 +2102,9 @@ int main(int argc, char **argv, char **envp) HD_OPTS); break; case QEMU_OPTION_drive: - drive_def(optarg); + if (drive_def(optarg) == NULL) { + exit(1); + } break; case QEMU_OPTION_set: if (qemu_set_option(optarg) != 0)