diff options
author | Dan Carpenter | 2021-05-17 11:57:56 +0300 |
---|---|---|
committer | David S. Miller | 2021-05-17 15:47:54 -0700 |
commit | 9d8a29aed03539a9012bff1232bacf062b5459cf (patch) | |
tree | afc4fdbf81266fb3c47461126dfadc23dba16928 /drivers/net/ethernet/atheros | |
parent | b3e22e10fdda8e7be3830289a4a63ae8b88d450c (diff) |
alx: fix a double unlock in alx_probe()
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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/alx/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index e8884879a50f..45e380f3b065 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -1859,7 +1859,7 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err = register_netdev(netdev); if (err) { dev_err(&pdev->dev, "register netdevice failed\n"); - goto out_unlock; + goto out_unmap; } netdev_info(netdev, |