summaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorJoyce Yu <joyce.yu@sun.com>2009-10-22 02:21:10 +0200
committerDavid S. Miller <davem@davemloft.net>2009-10-22 02:21:10 +0200
commit845de8afa66550331dca164ab77fa49de930b699 (patch)
tree9ccc3015180e1b83daf353c4b57399b4f0ef3d71 /drivers/net/niu.c
parentKS8851: Fix ks8851_set_rx_mode() for IFF_MULTICAST (diff)
downloadlinux-845de8afa66550331dca164ab77fa49de930b699.tar.xz
linux-845de8afa66550331dca164ab77fa49de930b699.zip
niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC header was copied to the head buffer in the Vlan packets case
Signed-off-by: Joyce Yu <joyce.yu@sun.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/niu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index f9364d0678f2..d6c7ac68f6ea 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -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;