aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/uverbs_std_types.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-04-01 17:08:24 -0300
committerJason Gunthorpe <jgg@mellanox.com>2019-04-08 13:05:25 -0300
commitfeec576a6af299143e40dcfb34b6c5604e4ff397 (patch)
tree6de5b0eeab5e8ffb12e544fd54a04bf0050cf906 /include/rdma/uverbs_std_types.h
parentIB/mlx5: Remove references to uboject->context (diff)
downloadlinux-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 'include/rdma/uverbs_std_types.h')
-rw-r--r--include/rdma/uverbs_std_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/uverbs_std_types.h b/include/rdma/uverbs_std_types.h
index b9226a5cdfd7..05eabfd5d0d3 100644
--- a/include/rdma/uverbs_std_types.h
+++ b/include/rdma/uverbs_std_types.h
@@ -128,7 +128,7 @@ __uobj_alloc(const struct uverbs_api_object *obj,
rdma_alloc_begin_uobject(obj, attrs->ufile, attrs);
if (!IS_ERR(uobj))
- *ib_dev = uobj->context->device;
+ *ib_dev = attrs->context->device;
return uobj;
}