• Ivan Vecera's avatar
    bna: fix soft lock-up during firmware initialization failure · 4818e856
    Ivan Vecera authored
    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: default avatarIvan Vecera <ivecera@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4818e856
bfa_ioc.c 78.1 KB