]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
enetc: Fix NULL dma address unmap for Tx BD extensions
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Wed, 15 May 2019 16:08:56 +0000 (19:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:00:07 +0000 (08:00 +0200)
commit802fcdf906c2698609963a31556daa9a88a2b622
tree174ff8e72ba18c65251fc9d9c9974eb50460ef78
parent78949aa80248b8ada8dac5f2678c56a751639050
enetc: Fix NULL dma address unmap for Tx BD extensions

[ Upstream commit f4a0be84d73ec648628bf8094600ceb73cb6073f ]

For the unlikely case of TxBD extensions (i.e. ptp)
the driver tries to unmap the tx_swbd corresponding
to the extension, which is bogus as it has no buffer
attached.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc.c