login
Header Space

 
 

Re: [CORRECTION][PATCH] Fix a potential NULL pointer dereference in uli526x_interrupt() in drivers/net/tulip/uli526x.c

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Micah Gruber <micah.gruber@...>
Cc: <linux-kernel@...>, <netdev@...>, <jgarzik@...>, Grant Grundler <grundler@...>
Date: Thursday, September 13, 2007 - 5:03 am

On Tue, 04 Sep 2007 16:14:06 +0800 Micah Gruber <micah.gruber@gmail.com> wrote:


I suspect the fix we want is:


--- a/drivers/net/tulip/uli526x.c~fix-a-potential-null-pointer-dereference-in-uli526x_interrupt
+++ a/drivers/net/tulip/uli526x.c
@@ -666,11 +666,6 @@ static irqreturn_t uli526x_interrupt(int
 	unsigned long ioaddr = dev->base_addr;
 	unsigned long flags;
 
-	if (!dev) {
-		ULI526X_DBUG(1, "uli526x_interrupt() without DEVICE arg", 0);
-		return IRQ_NONE;
-	}
-
 	spin_lock_irqsave(&db->lock, flags);
 	outl(0, ioaddr + DCR7);
 
_

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [CORRECTION][PATCH] Fix a potential NULL pointer derefer..., Andrew Morton, (Thu Sep 13, 5:03 am)
speck-geostationary