mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
bnx2i: Fixed firmware assert, during target logout.
Fix the firmware assert, during target logout in case driver received FIN from target before waiting for asyncronous response. Signed-off-by: Tej Parkash <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
ae977587da
commit
5fc956c243
1 changed files with 2 additions and 1 deletions
|
|
@ -2093,7 +2093,8 @@ int bnx2i_hw_ep_disconnect(struct bnx2i_endpoint *bnx2i_ep)
|
|||
else
|
||||
/* wait for option-2 conn teardown */
|
||||
wait_event_interruptible(bnx2i_ep->ofld_wait,
|
||||
bnx2i_ep->state != EP_STATE_DISCONN_START);
|
||||
((bnx2i_ep->state != EP_STATE_DISCONN_START)
|
||||
&& (bnx2i_ep->state != EP_STATE_TCP_FIN_RCVD)));
|
||||
|
||||
if (signal_pending(current))
|
||||
flush_signals(current);
|
||||
|
|
|
|||
Loading…
Reference in a new issue