diff options
author | Michael Chan <mchan@broadcom.com> | 2010-06-15 04:57:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 17:23:36 -0400 |
commit | ed99daa5a0de4df9ed579ce36ff8b1373b6dbe47 (patch) | |
tree | 17aa9ff6f5311930c7f232f06c19edc16e8eb4f9 /drivers | |
parent | 2850062af1e00b3aab9f2ae486eda3e61d4aaeb9 (diff) |
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: Michael Chan <mchan@broadcom.com.
Signed-off-by: Eddie Wai <waie@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/cnic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index 908d89a4fe86..b20e11cf5618 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c | |||
@@ -3026,6 +3026,8 @@ static int cnic_cm_close(struct cnic_sock *csk) | |||
3026 | if (cnic_close_prep(csk)) { | 3026 | if (cnic_close_prep(csk)) { |
3027 | csk->state = L4_KCQE_OPCODE_VALUE_CLOSE_COMP; | 3027 | csk->state = L4_KCQE_OPCODE_VALUE_CLOSE_COMP; |
3028 | return cnic_cm_close_req(csk); | 3028 | return cnic_cm_close_req(csk); |
3029 | } else { | ||
3030 | return -EALREADY; | ||
3029 | } | 3031 | } |
3030 | return 0; | 3032 | return 0; |
3031 | } | 3033 | } |