Commit ed99daa5 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

cnic: Return error code in cnic_cm_close() if unsuccessful.



So that bnx2i can handle the error condition immediately and not have to
wait for timeout.

Signed-off-by: default avatarMichael Chan <mchan@broadcom.com.>
Signed-off-by: default avatarEddie Wai <waie@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2850062a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}