]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: avoid timestamp read on error paths
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 31 Oct 2019 14:37:50 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 19:13:33 +0000 (12:13 -0700)
commit2c50450088e7c7c956415c8ceaa4de020acda0d0
tree96b4290292b398153adb45bd5bb82a4c4b7a6bfb
parent711a7a83ba1ef733af5a32e725779a369b0b2862
dpaa_eth: avoid timestamp read on error paths

The dpaa_cleanup_tx_fd() function is called by the frame transmit
confirmation callback but also on several error paths. This function
is reading the transmit timestamp value. Avoid reading an invalid
timestamp value on the error paths.

Fixes: ae149bfe4cc5 ("dpaa_eth: add support for hardware timestamping")
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c