From b40d2180d0386ee450d623067117d6b7566e7a91 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 26 Aug 2022 19:54:04 +0200 Subject: [PATCH] limine-deploy: Fix bug where undeploy() is reached with uninitialised device --- host/limine-deploy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {