netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.33-rc5] drivers/net: ks8851_mll ethernet network driver
@ 2010-01-27 16:03 Choi, David
  2010-01-27 16:28 ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Choi, David @ 2010-01-27 16:03 UTC (permalink / raw)
  To: davem; +Cc: netdev

Hello David Miller,

I fix a bug in ks8851_mll driver, which has existed since 2.6.32-rc6.

>From : David J. Choi <david.choi@micrel.com>

Fix a bug that the data pointers in the interrupt handler are set wrong, which is related with the 5th parameter of request_irq().   

Signed-off-by : David J. Choi <david.choi@micrel.com>
---
--- linux-2.6.33-rc5/drivers/net/ks8851_mll.c.orig	2010-01-26 17:36:51.000000000 -0800
+++ linux-2.6.33-rc5/drivers/net/ks8851_mll.c	2010-01-26 17:34:34.000000000 -0800
@@ -854,8 +854,8 @@ static void ks_update_link_status(struct
 
 static irqreturn_t ks_irq(int irq, void *pw)
 {
-	struct ks_net *ks = pw;
-	struct net_device *netdev = ks->netdev;
+	struct net_device *netdev = pw;
+	struct ks_net *ks = netdev_priv(netdev);
 	u16 status;
 
 	/*this should be the first in IRQ handler */
---

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-28 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 16:03 [PATCH 2.6.33-rc5] drivers/net: ks8851_mll ethernet network driver Choi, David
2010-01-27 16:28 ` Ben Hutchings
2010-01-28 13:59   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).