OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 May 2019 16:14:29 +0000 (09:14 -0700)
commitf4a0be84d73ec648628bf8094600ceb73cb6073f
treebd3c6554dcd1f373361ea5f2c71d9ceef3a4cbd9
parentcb07d915bf278a7a3938b983bbcb4921366b5eff
enetc: Fix NULL dma address unmap for Tx BD extensions

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>
drivers/net/ethernet/freescale/enetc/enetc.c