mirror of https://github.com/hak5/openwrt-owl.git
ar71xx: ag71xx: fix build_skb arguments for 3.6
Also add a compatibility patch for 3.3 Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33969owl
parent
7640a7cc24
commit
e2ec99889e
|
@ -891,7 +891,7 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
|
||||||
dev->stats.rx_packets++;
|
dev->stats.rx_packets++;
|
||||||
dev->stats.rx_bytes += pktlen;
|
dev->stats.rx_bytes += pktlen;
|
||||||
|
|
||||||
skb = build_skb(ring->buf[i].rx_buf);
|
skb = build_skb(ring->buf[i].rx_buf, 0);
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
kfree(ring->buf[i].rx_buf);
|
kfree(ring->buf[i].rx_buf);
|
||||||
goto next;
|
goto next;
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
reverted:
|
||||||
|
--- a/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
|
||||||
|
+++ b/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
|
||||||
|
@@ -891,7 +891,7 @@ static int ag71xx_rx_packets(struct ag71
|
||||||
|
dev->stats.rx_packets++;
|
||||||
|
dev->stats.rx_bytes += pktlen;
|
||||||
|
|
||||||
|
- skb = build_skb(ring->buf[i].rx_buf, 0);
|
||||||
|
+ skb = build_skb(ring->buf[i].rx_buf);
|
||||||
|
if (!skb) {
|
||||||
|
kfree(ring->buf[i].rx_buf);
|
||||||
|
goto next;
|
Loading…
Reference in New Issue