:: commit a626e56b198b0c8308547c2a33c0670cc8fde387

mintsuki <mintsuki@protonmail.com> — 2022-08-26 17:54

parents: b5ed64ae12

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

diff --git a/host/limine-deploy.c b/host/limine-deploy.c
index f874280c..8346892f 100644
--- a/host/limine-deploy.c
+++ b/host/limine-deploy.c
@@ -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) {
tab: 248 wrap: offon