projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2850062
)
cnic: Return error code in cnic_cm_close() if unsuccessful.
author
Michael Chan
<mchan@broadcom.com>
Tue, 15 Jun 2010 08:57:00 +0000
(08:57 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 15 Jun 2010 21:23:36 +0000
(14:23 -0700)
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>
drivers/net/cnic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/cnic.c
b/drivers/net/cnic.c
index 908d89a4fe869c682e2570514ce48c7106839d35..b20e11cf56189e27373fda9da9355af0b075cf87 100644
(file)
--- 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;
}