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 60ee3d9b66de17b50741ae19b707a1d0187f5c04..96bfd21b50754a5ebbfca14b7012a894241d57b3 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 db1855b9acf570cca4657863db3fe537b37d3528..b30bde21be0f2a567af3855e8075b1b737b98e88 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)