RDMA/uverbs: Fix a NULL vs IS_ERR() bug
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 May 2021 14:18:10 +0000 (17:18 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 19 May 2021 18:32:07 +0000 (15:32 -0300)
commit463a3f66473b58d71428a1c3ce69ea52c05440e5
treeb8fe9458077715d0d2ed9dccc12f9988b28f8fb0
parentcfa3b797118eda7d68f9ede9b1a0279192aca653
RDMA/uverbs: Fix a NULL vs IS_ERR() bug

The uapi_get_object() function returns error pointers, it never returns
NULL.

Fixes: 149d3845f4a5 ("RDMA/uverbs: Add a method to introspect handles in a context")
Link: https://lore.kernel.org/r/YJ6Got+U7lz+3n9a@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_std_types_device.c