summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-23 17:01:15 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-23 17:01:15 +0800
commit7a0a735a5c1db0e0b1816300c8ad211326bfcde6 (patch)
tree2a61c8a9a96be78233351ab846ad3c9810d4c723 /discover
parente39c5ad541830cecbd331f877ef43ded738a9251 (diff)
downloadtalos-petitboot-7a0a735a5c1db0e0b1816300c8ad211326bfcde6.tar.gz
talos-petitboot-7a0a735a5c1db0e0b1816300c8ad211326bfcde6.zip
discover: clear default_timeout waiter on timeout
We don't want cancel_default to try to remove an already-removed waiter. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 02ae688..95d2039 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -327,6 +327,8 @@ static int default_timeout(void *arg)
return 0;
}
+ handler->timeout_waiter = NULL;
+
pb_log("Timeout expired, booting default option %s\n", opt->option->id);
boot(handler, handler->default_boot_option, NULL,
OpenPOWER on IntegriCloud