stmmac: intel: unlock on error path in intel_crosststamp()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Apr 2021 13:22:50 +0000 (16:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 17:27:55 +0000 (10:27 -0700)
commit53e35ebb9a17fd953d9b8fe059aaf4282fa524f2
tree9eef7699e2b0081a597179f101ab6d4df3e3b499
parent2acf63c16a3b8d7a8f11d9d6f9ef49b9771c1aee
stmmac: intel: unlock on error path in intel_crosststamp()

We recently added some new locking to this function but one error path
was overlooked.  We need to drop the lock before returning.

Fixes: f4da56529da6 ("net: stmmac: Add support for external trigger timestamping")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c