IB/uverbs: Fix uverbs_attr_get_obj
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 22 May 2018 21:56:51 +0000 (15:56 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 23 May 2018 21:25:53 +0000 (15:25 -0600)
commitf4602cbb0a2478dda8238a4f382867da425daa8e
tree5e7b88cd7864478bcc027384fb23b2a93f3f55af
parent30bf066cd9989fef34aeeef9080368867fe42be7
IB/uverbs: Fix uverbs_attr_get_obj

The err pointer comes from uverbs_attr_get, not from the uobject member,
which does not store an ERR_PTR.

Fixes: be934cca9e98 ("IB/uverbs: Add device memory registration ioctl support")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
include/rdma/uverbs_ioctl.h