Skip to content

Commit 60cde81

Browse files
Yuval Mintzdavem330
authored andcommitted
bnx2x: Fix AER semaphore release
Commit 7fa6f34 "AER revised" erroneously inserted an error-flow in which a semaphore is released even though the attempt to take it has failed. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 40893fd commit 60cde81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10070,8 +10070,8 @@ static int bnx2x_prev_unload(struct bnx2x *bp)
1007010070
/* If Path is marked by EEH, ignore unload status */
1007110071
aer = !!(bnx2x_prev_path_get_entry(bp) &&
1007210072
bnx2x_prev_path_get_entry(bp)->aer);
10073+
up(&bnx2x_prev_sem);
1007310074
}
10074-
up(&bnx2x_prev_sem);
1007510075

1007610076
if (fw == FW_MSG_CODE_DRV_UNLOAD_COMMON || aer) {
1007710077
rc = bnx2x_prev_unload_common(bp);

0 commit comments

Comments
 (0)