]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 May 2019 16:14:29 +0000 (09:14 -0700)
commitbfd16ecee63860ab49211effb56f9133a33a5900
treebd3c6554dcd1f373361ea5f2c71d9ceef3a4cbd9
parentfbd8e66776df8e649710cd55397833bcdcdc124f
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