projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA/nes: Fix for passing a valid QP pointer to the user space library
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
infiniband
/
hw
/
nes
/
nes_verbs.c
diff --git
a/drivers/infiniband/hw/nes/nes_verbs.c
b/drivers/infiniband/hw/nes/nes_verbs.c
index 8308e3634767958a4a46920ca11983bf62e62e13..797d8876d948e29c8451d90caa5b25c904644fa0 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_verbs.c
+++ b/
drivers/infiniband/hw/nes/nes_verbs.c
@@
-1191,6
+1191,8
@@
static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
if (req.user_wqe_buffers) {
virt_wqs = 1;
}
+ if (req.user_qp_buffer)
+ nesqp->nesuqp_addr = req.user_qp_buffer;
if ((ibpd->uobject) && (ibpd->uobject->context)) {
nesqp->user_mode = 1;
nes_ucontext = to_nesucontext(ibpd->uobject->context);