diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-01-24 21:59:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-25 16:58:26 -0500 |
commit | a44acd551467d78a26bfa76ea348225575830efc (patch) | |
tree | 66ab6bcbbe391ac502652ffeb2682f283be0c849 /drivers/net | |
parent | 8bca5d1ebb8bf18187256845ba3aaff5fbc01934 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c index cb6339c3557..69465c32e5f 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c @@ -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); |