diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-04-21 16:22:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-21 10:27:55 -0700 |
commit | 53e35ebb9a17fd953d9b8fe059aaf4282fa524f2 (patch) | |
tree | 9eef7699e2b0081a597179f101ab6d4df3e3b499 /drivers/net/ethernet/stmicro | |
parent | 2acf63c16a3b8d7a8f11d9d6f9ef49b9771c1aee (diff) | |
download | linux-53e35ebb9a17fd953d9b8fe059aaf4282fa524f2.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index ec140fc4a0f5..bd662aaf664a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -320,6 +320,7 @@ static int intel_crosststamp(ktime_t *device, acr_value |= PTP_ACR_ATSEN3; break; default: + mutex_unlock(&priv->aux_ts_lock); return -EINVAL; } writel(acr_value, ptpaddr + PTP_ACR); |