niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC header was copied...
authorJoyce Yu <joyce.yu@sun.com>
Thu, 22 Oct 2009 00:21:10 +0000 (17:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Oct 2009 00:21:10 +0000 (17:21 -0700)
Signed-off-by: Joyce Yu <joyce.yu@sun.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c

index f9364d0678f27d19cc4ab1e5a0519034e627e2db..d6c7ac68f6ea8a8010fe6ca542c9fbbd05d8d738 100644 (file)
@@ -3545,7 +3545,7 @@ static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
        rp->rcr_index = index;
 
        skb_reserve(skb, NET_IP_ALIGN);
-       __pskb_pull_tail(skb, min(len, NIU_RXPULL_MAX));
+       __pskb_pull_tail(skb, min(len, VLAN_ETH_HLEN));
 
        rp->rx_packets++;
        rp->rx_bytes += skb->len;