]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Always propagate errors from rdma_alloc_commit_uobject()
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 11 Jul 2018 02:55:20 +0000 (20:55 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 25 Jul 2018 20:21:22 +0000 (14:21 -0600)
commit6a43705bb2080fcd7b3afe124a24892b59f84d5d
tree3c73802d3c6661c6828c2f9fe881e4710875cf97
parent5d1cc7450703f855d0aa13fbf391f40a3399e0f6
IB/uverbs: Always propagate errors from rdma_alloc_commit_uobject()

The ioctl framework already does this correctly, but the write path did
not. This is trivially fixed by simply using a standard pattern to return
uobj_alloc_commit() as the last statement in every function.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/uverbs_cmd.c
include/rdma/uverbs_std_types.h
include/rdma/uverbs_types.h