diff options
author | Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> | 2014-03-11 23:20:17 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-17 21:04:16 +0400 |
commit | 43adff3979c8f887b364c887e447c443e2f835e8 (patch) | |
tree | b073150635f0819714789c8d72dfe8dfffafc9ec /drivers/infiniband/hw/nes/nes_cm.c | |
parent | 4ac79a70033cbb9b7fa2bb2f3770308359af8c12 (diff) | |
download | linux-43adff3979c8f887b364c887e447c443e2f835e8.tar.xz |
RDMA/nes: Fix for passing a valid QP pointer to the user space library
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_cm.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index e852a3a42b9e..dfa9df484505 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c @@ -657,7 +657,7 @@ static void build_rdma0_msg(struct nes_cm_node *cm_node, struct nes_qp **nesqp_a struct nes_qp *nesqp = *nesqp_addr; struct nes_hw_qp_wqe *wqe = &nesqp->hwqp.sq_vbase[0]; - u64temp = (unsigned long)nesqp; + u64temp = (unsigned long)nesqp->nesuqp_addr; u64temp |= NES_SW_CONTEXT_ALIGN >> 1; set_wqe_64bit_value(wqe->wqe_words, NES_IWARP_SQ_WQE_COMP_CTX_LOW_IDX, u64temp); |