]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c62538a3676102b5d95cfeb34f05a3e8e47a769
tree1d77cd6906181069ef3b5d1508c99c9a02f3e340
parentc4d843594a7e8a96c600a95fcb2e3078d35356db
net: fix skb_defer_rx_timestamp()

After commit 738ca1bf94be (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