From: Ralf Baechle Date: Sun, 15 Oct 2006 08:17:43 +0000 (+0100) Subject: [MIPS] Malta: Fix uninitialized regs pointer. X-Git-Tag: v2.6.19-rc3~40^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba38cdf94285a1fc6a01fd493bdc5304bc83f61e;p=linux-2.6 [MIPS] Malta: Fix uninitialized regs pointer. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mips-boards/malta/malta_int.c b/arch/mips/mips-boards/malta/malta_int.c index 6244d0e2c7..90ad5bf3e2 100644 --- a/arch/mips/mips-boards/malta/malta_int.c +++ b/arch/mips/mips-boards/malta/malta_int.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -131,7 +132,7 @@ static void corehi_irqdispatch(void) unsigned int intedge, intsteer, pcicmd, pcibadaddr; unsigned int pcimstat, intisr, inten, intpol; unsigned int intrcause,datalo,datahi; - struct pt_regs *regs; + struct pt_regs *regs = get_irq_regs(); printk("CoreHI interrupt, shouldn't happen, so we die here!!!\n"); printk("epc : %08lx\nStatus: %08lx\n"