projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6bccf6
)
RDMA/cxgb3: Remove cmid reference on tid allocation failures
author
Steve Wise
<swise@opengridcomputing.com>
Wed, 15 Oct 2008 17:50:34 +0000
(10:50 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 15 Oct 2008 17:50:34 +0000
(10:50 -0700)
The error path in iwch_connect() can fail to drop the cmid reference,
which will cause the process to hang when destroying the cmid.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb3/iwch_cm.c
b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index c325c44807e8226b1744796a7463e6aab384e950..44e936e48a313d023964459ce36b0cf7c4b668d9 100644
(file)
--- a/
drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/
drivers/infiniband/hw/cxgb3/iwch_cm.c
@@
-1942,6
+1942,7
@@
fail4:
fail3:
cxgb3_free_atid(ep->com.tdev, ep->atid);
fail2:
+ cm_id->rem_ref(cm_id);
put_ep(&ep->com);
out:
return err;