Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223250
b: refs/heads/master
c: a19faf0
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 11, 2010
1 parent 903c4d1 commit 3e5d687
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c710245caa41060e983cc9cb5ffcc020e02ca45f
refs/heads/master: a19faf0250e09b16cac169354126404bc8aa342b
6 changes: 4 additions & 2 deletions trunk/net/core/timestamping.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ bool skb_defer_rx_timestamp(struct sk_buff *skb)
struct phy_device *phydev;
unsigned int type;

skb_push(skb, ETH_HLEN);
if (skb_headroom(skb) < ETH_HLEN)
return false;
__skb_push(skb, ETH_HLEN);

type = classify(skb);

skb_pull(skb, ETH_HLEN);
__skb_pull(skb, ETH_HLEN);

switch (type) {
case PTP_CLASS_V1_IPV4:
Expand Down

0 comments on commit 3e5d687

Please sign in to comment.