git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/ipath: deref correct pointer when using kernel SMA
[safe/jmp/linux-2.6]
/
drivers
/
infiniband
/
hw
/
ipath
/
ipath_qp.c
diff --git
a/drivers/infiniband/hw/ipath/ipath_qp.c
b/drivers/infiniband/hw/ipath/ipath_qp.c
index
0924a21
..
9f8855d
100644
(file)
--- a/
drivers/infiniband/hw/ipath/ipath_qp.c
+++ b/
drivers/infiniband/hw/ipath/ipath_qp.c
@@
-734,7
+734,7
@@
struct ib_qp *ipath_create_qp(struct ib_pd *ibpd,
ipath_reset_qp(qp);
/* Tell the core driver that the kernel SMA is present. */
- if (
qp->ibqp.
qp_type == IB_QPT_SMI)
+ if (
init_attr->
qp_type == IB_QPT_SMI)
ipath_layer_set_verbs_flags(dev->dd,
IPATH_VERBS_KERNEL_SMA);
break;