limine-deploy: Fix bug where undeploy() is reached with uninitialised device
This commit is contained in:
parent
2e52a41e46
commit
b40d2180d0
|
@ -554,8 +554,9 @@ int main(int argc, char *argv[]) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!device_init())
|
if (!device_init()) {
|
||||||
goto cleanup;
|
goto undeploy_mode_cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if (undeploy_mode) {
|
if (undeploy_mode) {
|
||||||
if (undeploy_file == NULL) {
|
if (undeploy_file == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue