bna: fix soft lock-up during firmware initialization failure
authorIvan Vecera <ivecera@redhat.com>
Thu, 28 May 2015 21:10:08 +0000 (23:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:46:49 +0000 (23:46 -0700)
commit4818e856475b309667ee38d4d0f2e3c1b933feef
tree8dd69b9c3ec2b97768a1872767389e394b50f26f
parent4918eb1e7cd3b8a41ebf56b5fabaa334139b919f
bna: fix soft lock-up during firmware initialization failure

Bug in the driver initialization causes soft-lockup if firmware
initialization timeout is reached. Polling function bfa_ioc_poll_fwinit()
incorrectly calls bfa_nw_iocpf_timeout() when the timeout is reached.
The problem is that bfa_nw_iocpf_timeout() calls again
bfa_ioc_poll_fwinit()... etc. The bfa_ioc_poll_fwinit() should directly
send timeout event for iocpf and the same should be done if firmware
download into HW fails.

Cc: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfa_ioc.c