diff options
| author | 2018-09-17 15:44:46 -0600 | |
|---|---|---|
| committer | 2018-09-19 10:49:22 -0600 | |
| commit | 0099103926b68e6675a1be4644848f5b1c1b6f97 (patch) | |
| tree | 7be7fffe0221da2320629c9f3c086cb73f27b8fe /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | RDMA/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/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
