]> 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)
commit2c48568b3f9d78edc7a60515e54e973d09042dd1
tree96b4290292b398153adb45bd5bb82a4c4b7a6bfb
parentff8acd3a8203584fa0e0c4d9a68573487d63da20
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: 31cc7c4edbe3 ("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