]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92b1bf6585455e7422e86bd87b1db2aa9b9df969
tree5e7b88cd7864478bcc027384fb23b2a93f3f55af
parent425dee6e36d1ccb56b6406c086d99660d270e4b1
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: 1086bab575cb ("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