diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2018-11-26 08:28:34 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-12-04 13:46:41 -0500 |
commit | 04ca16cc198c2bd2fc51749123c118a284d1605e (patch) | |
tree | 0867450a445be4d2f4ae9934f4dbc5839a2ed1ed /drivers/infiniband/core/uverbs_uapi.c | |
parent | 4d7e8cc57429e1874658acbff98d3877c81cd0a4 (diff) | |
download | linux-04ca16cc198c2bd2fc51749123c118a284d1605e.tar.gz linux-04ca16cc198c2bd2fc51749123c118a284d1605e.tar.bz2 linux-04ca16cc198c2bd2fc51749123c118a284d1605e.zip |
IB/core: Enable getting an object type from a given uobject
Enable getting an object type from a given uobject, the type is saved
upon tree merging and is returned as part of some helper function.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_uapi.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_uapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/uverbs_uapi.c b/drivers/infiniband/core/uverbs_uapi.c index faac225184a6..0136c1d78a0f 100644 --- a/drivers/infiniband/core/uverbs_uapi.c +++ b/drivers/infiniband/core/uverbs_uapi.c @@ -184,6 +184,7 @@ static int uapi_merge_obj_tree(struct uverbs_api *uapi, if (WARN_ON(obj_elm->type_attrs)) return -EINVAL; + obj_elm->id = obj->id; obj_elm->type_attrs = obj->type_attrs; obj_elm->type_class = obj->type_attrs->type_class; /* |