diff options
author | Michael Chan <mchan@broadcom.com> | 2010-06-15 08:57:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 14:23:36 -0700 |
commit | ed99daa5a0de4df9ed579ce36ff8b1373b6dbe47 (patch) | |
tree | 17aa9ff6f5311930c7f232f06c19edc16e8eb4f9 | |
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>
-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 908d89a4fe8..b20e11cf561 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c @@ -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; } |