lkml.org 
[lkml]   [2011]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[Patch] Patch for bug #13853
From
Hi everyone,

There is a patch generated by the tool R2Fix for bug #13853.
The problem still exist in latest version.
Could you please take a look at them? Thanks!

--- linux-2.6.30/drivers/net/ariadne.c 2009-06-09 23:05:27.000000000 -0400
+++ /tmp/cocci-output-13571-c63aba-ariadne.c 2011-02-21 17:50:37.625039103 -0500
@@ -421,7 +421,7 @@ static inline void ariadne_reset(struct
static irqreturn_t ariadne_interrupt(int irq, void *data)
{
struct net_device *dev = (struct net_device *)data;
- volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr;
+ volatile struct Am79C960 *lance;
struct ariadne_private *priv;
int csr0, boguscnt;
int handled = 0;
@@ -430,6 +430,7 @@ static irqreturn_t ariadne_interrupt(int
printk(KERN_WARNING "ariadne_interrupt(): irq for unknown device.\n");
return IRQ_NONE;
}
+ lance = (struct Am79C960 *)dev->base_addr;

lance->RAP = CSR0; /* PCnet-ISA Controller Status */

Best,
Jinqiu


\
 
 \ /
  Last update: 2011-03-02 22:15    [from the cache]
©2003-2011 Jasper Spaans