Commit 146d26b2 authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/uverbs: Set correct user handle for user SRQs

Store away the user handle passed in from userspace when creating an
SRQ, so that the kernel can return the correct handle when an SRQ
asynchronous event occurs.  (A 0 was incorrectly stored as the user
handle as part of the changes in 9ead190b

, "IB/uverbs: Don't serialize
with ib_uverbs_idr_mutex")

Signed-off-by: default avatarRoland Dreier <>
parent 598736c5
......@@ -1963,7 +1963,7 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
if (!obj)
return -ENOMEM;
init_uobj(&obj->uobject, 0, file->ucontext);
init_uobj(&obj->uobject, cmd.user_handle, file->ucontext);
pd = idr_read_pd(cmd.pd_handle, file->ucontext);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment