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)
commita19faf0250e09b16cac169354126404bc8aa342b
tree1d77cd6906181069ef3b5d1508c99c9a02f3e340
parentc710245caa41060e983cc9cb5ffcc020e02ca45f
net: fix skb_defer_rx_timestamp()

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>
net/core/timestamping.c