Skip to content

Commit

Permalink
cnic: Return error code in cnic_cm_close() if unsuccessful.
Browse files Browse the repository at this point in the history
So that bnx2i can handle the error condition immediately and not have to
wait for timeout.

Signed-off-by: Michael Chan <mchan@broadcom.com.
Signed-off-by: Eddie Wai <waie@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jun 15, 2010
1 parent 2850062 commit ed99daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,8 @@ static int cnic_cm_close(struct cnic_sock *csk)
if (cnic_close_prep(csk)) {
csk->state = L4_KCQE_OPCODE_VALUE_CLOSE_COMP;
return cnic_cm_close_req(csk);
} else {
return -EALREADY;
}
return 0;
}
Expand Down

0 comments on commit ed99daa

Please sign in to comment.