]> 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)
commitc412ae9c08d8922caea5f509e967b712fc482837
tree3c73802d3c6661c6828c2f9fe881e4710875cf97
parent4c9f7a77f6ce5da2db4292f7bdb1145cf3111688
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