Skip to contentSkip to conversation

softlockup_tick needs to initialize regs

PATCH New Jeff Dike 1 participant 1 message Sep 14, 2007

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 softlockup_tick needs to initialize regs

softlockup-improve-debug-output.patch introduces a regs, but fails to initialize it.

---
 kernel/softlockup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/softlockup.c +1 -1
Index: linux-2.6.22/kernel/softlockup.c
===================================================================
@@ -80,7 +80,7 @@ void softlockup_tick(void)
 	int this_cpu = smp_processor_id();
 	unsigned long touch_timestamp = per_cpu(touch_timestamp, this_cpu);
 	unsigned long print_timestamp;
-	struct pt_regs *regs;
+	struct pt_regs *regs = get_irq_regs();
 	unsigned long now;
 
 	if (touch_timestamp == 0) {