]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:29 +0000 (13:58 -0800)
commitb1b27e4a677bc8c92b3c83541b4981c000934bc2
tree71a8d228166cf58b2968bff68316746081b5b417
parent8cd7b4be422ff636fb4359a77c437a214c6f272f
net: fix skb_defer_rx_timestamp()

[ Upstream commit a19faf0250e09b16cac169354126404bc8aa342b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/timestamping.c