This fixes an uninitialised timeout structure on the stack,
leading to the .set field being non-zero thus reset_timeout
is attempted to be called on a timeout not yet in the wheel.

Reported by Brent Baccala
---
 i386/i386at/ioapic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c
index 6d9e6db9..4b4c1282 100644
--- a/i386/i386at/ioapic.c
+++ b/i386/i386at/ioapic.c
@@ -231,6 +231,7 @@ timer_measure_10x_apic_hz(void)
     timeout_data_t tmp_timer;
     tmp_timer.fcn = timer_expiry_callback;
     tmp_timer.param = (void *)&done;
+    tmp_timer.set = 0;
 
     printf("timer calibration...");
 
-- 
2.51.0



Reply via email to