]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Add a check for an skb in the timestamp path
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 28 Jun 2017 18:41:58 +0000 (13:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:14:16 +0000 (15:14 -0400)
commitd1fc0852870832f3323f684fee63feda8f5738b8
tree8e9cb5c5201d5c29b4e1d7cd04cde838aec3d87a
parent72e0db7196dfb9ff2ef3854b6f7fc27349bd066f
amd-xgbe: Add a check for an skb in the timestamp path

Spurious Tx timestamp interrupts can cause an oops in the Tx timestamp
processing function if a Tx timestamp skb is NULL. Add a check to insure
a Tx timestamp skb is present before attempting to use it.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c