projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a71bf
)
niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC header was copied...
author
Joyce Yu
<joyce.yu@sun.com>
Thu, 22 Oct 2009 00:21:10 +0000
(17:21 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/niu.c
b/drivers/net/niu.c
index f9364d0678f27d19cc4ab1e5a0519034e627e2db..d6c7ac68f6ea8a8010fe6ca542c9fbbd05d8d738 100644
(file)
--- 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;