Alex Dewar 4f680cb9f1 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/20200902162454.332828-1-alex.dewar90@gmail.com
Addresses-Coverity-ID: 1496814 ("Resource leak")
Fixes: 95fe51096b7a ("RDMA/ucma: Remove mc_list and rely on xarray")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-02 17:06:48 -03:00
..
2020-01-25 15:11:37 -04:00
2020-08-31 12:28:12 -03:00
2020-08-31 12:28:12 -03:00
2020-08-06 16:43:36 -07:00
2020-03-04 14:28:25 -04:00
2020-08-06 16:43:36 -07:00
2019-06-28 21:18:23 -03:00
2018-12-12 07:40:16 -07:00
2020-08-23 17:36:59 -05:00
2018-12-12 07:40:16 -07:00
2020-07-06 14:54:46 -03:00