diff options
author | 2019-04-01 17:08:24 -0300 | |
---|---|---|
committer | 2019-04-08 13:05:25 -0300 | |
commit | feec576a6af299143e40dcfb34b6c5604e4ff397 (patch) | |
tree | 6de5b0eeab5e8ffb12e544fd54a04bf0050cf906 /drivers/infiniband/core/uverbs_std_types_cq.c | |
parent | IB/mlx5: Remove references to uboject->context (diff) | |
download | linux-dev-feec576a6af299143e40dcfb34b6c5604e4ff397.tar.xz linux-dev-feec576a6af299143e40dcfb34b6c5604e4ff397.zip |
IB: When attrs.udata/ufile is available use that instead of uobject
The ucontext and ufile should not be accessed via the uobject, all these
cases have an attrs so use that instead.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_std_types_cq.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_std_types_cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_std_types_cq.c b/drivers/infiniband/core/uverbs_std_types_cq.c index 977e386009fc..db5c46a1bb2d 100644 --- a/drivers/infiniband/core/uverbs_std_types_cq.c +++ b/drivers/infiniband/core/uverbs_std_types_cq.c @@ -64,7 +64,7 @@ static int UVERBS_HANDLER(UVERBS_METHOD_CQ_CREATE)( struct ib_ucq_object *obj = container_of( uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_HANDLE), typeof(*obj), uobject); - struct ib_device *ib_dev = obj->uobject.context->device; + struct ib_device *ib_dev = attrs->context->device; int ret; u64 user_handle; struct ib_cq_init_attr attr = {}; |