diff options
| author | Jason Gunthorpe <[email protected]> | 2018-09-17 15:44:46 -0600 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-09-19 10:49:22 -0600 |
| commit | 0099103926b68e6675a1be4644848f5b1c1b6f97 (patch) | |
| tree | 7be7fffe0221da2320629c9f3c086cb73f27b8fe /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 0965cc953a235196b8d6ef0cba45ecb5c355194f (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/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions