]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Initialize uverbs_attr_bundle ucontext in ib_uverbs_get_context
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Tue, 30 Apr 2019 14:23:21 +0000 (17:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 13:09:25 +0000 (10:09 -0300)
commit48cc874e68220251bf841f23abe4d95a4f9cec2e
treec13b61e69d70001b3c7232eed87f0db46ff7bf55
parentc65b4b71a158f0fd8f0a16aac5c24ad60d9dfed1
RDMA/uverbs: Initialize uverbs_attr_bundle ucontext in ib_uverbs_get_context

ib_uverbs_get_context does not have a uobject so it does not call the
rdma_lookup_get_uobject which is used to set up the uverbs_attr_bundle
ucontext. For ib_uverbs_get_context we need to set up this manually before
we send the uverbs_attr_bundle down to the driver layer.

This completes the change that was done in commit 97dac815a36d ("IB:
ucontext should be set properly for all cmd & ioctl paths")

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c