bnx2x: Fix AER semaphore release
authorYuval Mintz <yuvalmin@broadcom.com>
Tue, 26 Mar 2013 23:28:03 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2013 16:48:31 +0000 (12:48 -0400)
commit60cde81f9dc9d70fa4462f4fefb72a1f27333af8
tree44f652ebcdad6b840d0e15043d946983054497a9
parent40893fd0fd4e0eda8c6a53db6a8e6013b2d44c16
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 <dan.carpenter@oracle.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c