dpaa2-eth: fix a possible null pointer dereference
authorRobert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Mon, 31 May 2021 10:30:04 +0000 (13:30 +0300)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Wed, 2 Jun 2021 10:00:08 +0000 (12:00 +0200)
commit3f502a7898c14e921d15a0694307918496d35efe
tree898293845cb46cdb1049fa066fc176c827c3d39c
parentea07558fb29b4b2fdf0a8bc633d8e98004d6d2eb
dpaa2-eth: fix a possible null pointer dereference

In case the FD that we are cleaning up on the Tx confirmation path
is corrupted (carries a wrong SWA type), there will be no skb
to work with.

Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c