projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e081a
)
RDMA/cxgb4: Don't use null ep ptr
author
Steve Wise
<swise@opengridcomputing.com>
Fri, 10 Sep 2010 16:14:48 +0000
(11:14 -0500)
committer
Roland Dreier
<rolandd@cisco.com>
Tue, 28 Sep 2010 17:46:29 +0000
(10:46 -0700)
In c4iw_modify_qp() error path, only use qhp->ep if ep is not already set.
Otherwise qhp->ep can be NULL and we crash.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb4/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/qp.c
b/drivers/infiniband/hw/cxgb4/qp.c
index 5d11f8601599621a0eaea34260a32d0f969640c5..4f5dd66da39d0b89cc758d61bf46462fee149a4c 100644
(file)
--- a/
drivers/infiniband/hw/cxgb4/qp.c
+++ b/
drivers/infiniband/hw/cxgb4/qp.c
@@
-1305,7
+1305,8
@@
err:
/* disassociate the LLP connection */
qhp->attr.llp_stream_handle = NULL;
- ep = qhp->ep;
+ if (!ep)
+ ep = qhp->ep;
qhp->ep = NULL;
qhp->attr.state = C4IW_QP_STATE_ERROR;
free = 1;