ag71xx driver: fix a kernel crash caused by r14496
authorGabor Juhos <juhosg@openwrt.org>
Fri, 13 Feb 2009 20:36:39 +0000 (20:36 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 13 Feb 2009 20:36:39 +0000 (20:36 +0000)
SVN-Revision: 14504

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index 60ee3d9..96bfd21 100644 (file)
@@ -38,7 +38,7 @@
 #define ETH_FCS_LEN    4
 
 #define AG71XX_DRV_NAME                "ag71xx"
-#define AG71XX_DRV_VERSION     "0.5.19"
+#define AG71XX_DRV_VERSION     "0.5.20"
 
 #define AG71XX_NAPI_WEIGHT     64
 #define AG71XX_OOM_REFILL      (1 + HZ/10)
index db1855b..b30bde2 100644 (file)
@@ -730,7 +730,7 @@ static int ag71xx_poll(struct napi_struct *napi, int limit)
 
        mod_timer(&ag->oom_timer, jiffies + AG71XX_OOM_REFILL);
        netif_rx_complete(dev, napi);
-       return done;
+       return 0;
 }
 
 static irqreturn_t ag71xx_interrupt(int irq, void *dev_id)