projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
batman-adv: Replace gw_reselect divisor with simple shift
[firefly-linux-kernel-4.4.55.git]
/
net
/
core
/
timestamping.c
diff --git
a/net/core/timestamping.c
b/net/core/timestamping.c
index 43d3dd62fcc8eccd95a4618f68b0553cf7309c01..42689d5c468cb4f53baa058c74cdee58099137c7 100644
(file)
--- a/
net/core/timestamping.c
+++ b/
net/core/timestamping.c
@@
-60,11
+60,15
@@
bool skb_defer_rx_timestamp(struct sk_buff *skb)
struct phy_device *phydev;
unsigned int type;
struct phy_device *phydev;
unsigned int type;
+ if (!skb->dev || !skb->dev->phydev || !skb->dev->phydev->drv)
+ return false;
+
if (skb_headroom(skb) < ETH_HLEN)
return false;
if (skb_headroom(skb) < ETH_HLEN)
return false;
+
__skb_push(skb, ETH_HLEN);
__skb_push(skb, ETH_HLEN);
- type =
classify
(skb);
+ type =
ptp_classify_raw
(skb);
__skb_pull(skb, ETH_HLEN);
__skb_pull(skb, ETH_HLEN);