IB/uverbs: Delete type and id from uverbs_obj_attr
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 20 Jun 2018 21:47:11 +0000 (15:47 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Jun 2018 15:02:59 +0000 (09:02 -0600)
commit321d7863acf7b1cf921ac18cd5ad5483b3cbb7ec
tree3502d3015b6ba2949f9ba15c509c8a5281ac65f6
parent4d7dff2b8b24d0087c75afb8e53140acdd1dc2bd
IB/uverbs: Delete type and id from uverbs_obj_attr

In this context the uobject is not allowed to be NULL, so type is the same
as uobject->type, and at least for IDR, id is the same as uobject->id.

FD objects should never handle the FD number outside the uAPI boundary
code.

Suggested-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_ioctl.c
include/rdma/uverbs_ioctl.h