From: Dan Carpenter <hidden> Date: 2021-05-17 08:58:14
We're not holding the lock at this point so "goto unlock;" should be
"goto unmap;"
Fixes: 4a5fe57e7751 ("alx: use fine-grained locking instead of RTNL")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/ethernet/atheros/alx/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Dan Carpenter <hidden> Date: 2021-05-17 08:58:52
We need to drop the lock before returning on this error path.
Fixes: 4a5fe57e7751 ("alx: use fine-grained locking instead of RTNL")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/ethernet/atheros/alx/ethtool.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -253,8 +253,10 @@ static int alx_set_pauseparam(struct net_device *netdev,if(reconfig_phy){err=alx_setup_speed_duplex(hw,hw->adv_cfg,fc);-if(err)+if(err){+mutex_unlock(&alx->mtx);returnerr;+}}/* flow control on mac */