:: commit b40d2180d0386ee450d623067117d6b7566e7a91

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

parents: 2e52a41e46

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