limine-deploy: Fix bug where undeploy() is reached with uninitialised device

This commit is contained in:
mintsuki 2022-08-26 19:54:04 +02:00
parent 2e52a41e46
commit b40d2180d0
1 changed files with 3 additions and 2 deletions

View File

@ -554,8 +554,9 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
if (!device_init())
goto cleanup;
if (!device_init()) {
goto undeploy_mode_cleanup;
}
if (undeploy_mode) {
if (undeploy_file == NULL) {