mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 14:24:18 +08:00
bnx2x: unlock before returning an error
We introduced a new return here but forgot to drop the lock. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8bca5d1ebb
commit
a44acd5514
@ -1836,6 +1836,7 @@ static int bnx2x_vlan_mac_del_all(struct bnx2x *bp,
|
||||
rc = exeq->remove(bp, exeq->owner, exeq_pos);
|
||||
if (rc) {
|
||||
BNX2X_ERR("Failed to remove command\n");
|
||||
spin_unlock_bh(&exeq->lock);
|
||||
return rc;
|
||||
}
|
||||
list_del(&exeq_pos->link);
|
||||
|
Loading…
Reference in New Issue
Block a user