aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-09-17 15:44:46 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-09-19 10:49:22 -0600
commit0099103926b68e6675a1be4644848f5b1c1b6f97 (patch)
tree7be7fffe0221da2320629c9f3c086cb73f27b8fe /tools/perf/scripts/python
parentRDMA/core: Properly return the error code of rdma_set_src_addr_rcu (diff)
RDMA/uverbs: Fix error unwind in ib_uverbs_add_one
The error path has several mistakes - cdev_del should not be called if cdev_device_add fails - We must call put_device on all the goto exit paths as that is what frees the uapi, SRCU and the struct itself. While we are here consolidate all the uvdev_dev init that cannot fail at the top. Fixes: c5c4d92e70f3 ("RDMA/uverbs: Use cdev_device_add() instead of cdev_add()") Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions