net: fix skb_defer_rx_timestamp()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 5 Dec 2010 18:50:32 +0000 (18:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Dec 2010 00:20:56 +0000 (16:20 -0800)
After commit c1f19b51d1d8 (net: support time stamping in phy devices.),
kernel might crash if CONFIG_NETWORK_PHY_TIMESTAMPING=y and
skb_defer_rx_timestamp() handles a packet without an ethernet header.

Fixes kernel bugzilla #24102

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=24102
Reported-and-tested-by: Andrew Watts <akwatts@ymail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found