Hi Randy,
I have tested my patch, and it is ok now.
Could you please try patching again? Sorry for previous trouble.
Thank you!
Jinqiu
------------------------------------------------------
This patch fixes bugzilla #13853:
https://bugzilla.kernel.org/show_bug.cgi?id=13853
The patch removes dereference of 'dev' after testing for NULL.
Signed-off-by: Jinqiu Yang<redacted>
---
ariadne.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -430,6 +430,7 @@ static irqreturn_t ariadne_interrupt(intreturnIRQ_NONE;}+lance=(structAm79C960*)dev->base_addr;lance->RAP=CSR0;/* PCnet-ISA Controller Status */if(!(lance->RDP&INTR))/* Check if any interrupt has been */
@@ -430,6 +430,7 @@ static irqreturn_t ariadne_interrupt(intreturnIRQ_NONE;}+lance=(structAm79C960*)dev->base_addr;lance->RAP=CSR0;/* PCnet-ISA Controller Status */if(!(lance->RDP&INTR))/* Check if any interrupt has been */
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
return IRQ_NONE;
}
+ lance = (struct Am79C960 *)dev->base_addr;
lance->RAP = CSR0; /* PCnet-ISA Controller Status */
if (!(lance->RDP & INTR)) /* Check if any interrupt has been */
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
People really don't actually read patches, I think.
Show me how dev can even be NULL here, it simply can't.
So the correct fix is to remove the dev==NULL check altogether.