OSDN Git Service

net: stmmac: fix missing unlock on error in stmmac_suspend()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 27 Mar 2021 09:33:22 +0000 (17:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 01:00:00 +0000 (18:00 -0700)
commit30f347ae7cc1178c431f968a89d4b4a375bc0d39
tree9512f58635bc370b32b66e983ae70fc0f68dd4ca
parent284fda1eff8a8b27d2cafd7dc8fb423d13720f21
net: stmmac: fix missing unlock on error in stmmac_suspend()

Add the missing unlock before return from stmmac_suspend()
in the error handling case.

Fixes: 5ec55823438e ("net: stmmac: add clocks management for gmac driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c