Skip to content

Commit a44acd5

Browse files
Dan Carpenterdavem330
authored andcommitted
bnx2x: unlock before returning an error
We introduced a new return here but forgot to drop the lock. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Dmitry Kravkov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8bca5d1 commit a44acd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,7 @@ static int bnx2x_vlan_mac_del_all(struct bnx2x *bp,
18361836
rc = exeq->remove(bp, exeq->owner, exeq_pos);
18371837
if (rc) {
18381838
BNX2X_ERR("Failed to remove command\n");
1839+
spin_unlock_bh(&exeq->lock);
18391840
return rc;
18401841
}
18411842
list_del(&exeq_pos->link);

0 commit comments

Comments
 (0)