OSDN Git Service

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)
commit2c96eb7d62de5048aa08e9ee4fbb607f29e2638c
tree3c73802d3c6661c6828c2f9fe881e4710875cf97
parente951747a087a8655f467833bb367ebf53d57527c
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