aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2018-09-17 15:44:46 -0600
committerJason Gunthorpe <[email protected]>2018-09-19 10:49:22 -0600
commit0099103926b68e6675a1be4644848f5b1c1b6f97 (patch)
tree7be7fffe0221da2320629c9f3c086cb73f27b8fe /tools/perf/scripts/python/call-graph-from-sql.py
parent0965cc953a235196b8d6ef0cba45ecb5c355194f (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 <[email protected]> Reviewed-by: Parav Pandit <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions