diff options
| author | Alex Dewar <[email protected]> | 2020-09-02 17:24:51 +0100 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-09-02 17:06:48 -0300 |
| commit | 4f680cb9f1bb6c2b5cd3574533702334709e50ad (patch) | |
| tree | 9856a2b8ed8a5d444fb51206c7e21c8485ee93d9 /tools/perf/scripts/python/bin | |
| parent | 7d11b4787d538295f65dcd002954a0f8ed2c393c (diff) | |
RDMA/ucma: Fix resource leak on error path
In ucma_process_join(), if the call to xa_alloc() fails, the function will
return without freeing mc. Fix this by jumping to the correct line.
In the process I renamed the jump labels to something more memorable for
extra clarity.
Link: https://lore.kernel.org/r/[email protected]
Addresses-Coverity-ID: 1496814 ("Resource leak")
Fixes: 95fe51096b7a ("RDMA/ucma: Remove mc_list and rely on xarray")
Signed-off-by: Alex Dewar <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions