]> git.baikalelectronics.ru Git - kernel.git/commit
alx: fix a double unlock in alx_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 May 2021 08:57:56 +0000 (11:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 22:47:54 +0000 (15:47 -0700)
commit9f8b33e4da5508b9c7b610ddaead2558c5ff0628
treeafc4fdbf81266fb3c47461126dfadc23dba16928
parent13f77bc5c3b355c0b658242d0698116528550233
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: f4eba221099e ("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>
drivers/net/ethernet/atheros/alx/main.c