From: Choi, David Date: Wed, 27 Jan 2010 06:03:16 +0000 (+0000) Subject: drivers/net: ks8851_mll ethernet network driver X-Git-Tag: v2.6.33-rc7~20^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=aeedba8bd2cf2f6f7b45bc7853754a03bc926797;p=~shefty%2Frdma-dev.git drivers/net: ks8851_mll ethernet network driver Hello David Miller, I fix a bug in ks8851_mll driver, which has existed since 2.6.32-rc6. >From : David J. Choi 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c index c146304d8d6..c0ceebccaa4 100644 --- a/drivers/net/ks8851_mll.c +++ b/drivers/net/ks8851_mll.c @@ -854,8 +854,8 @@ static void ks_update_link_status(struct net_device *netdev, struct ks_net *ks) 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 */