pvrdma: release ring object in case of an error
create_cq and create_qp routines allocate ring object, but it's not released in case of an error, leading to memory leakage. Reported-by: NLi Qiang <liq3ea@163.com> Signed-off-by: NPrasad J Pandit <pjp@fedoraproject.org> Reviewed-by: NYuval Shaia <yuval.shaia@oracle.com> Signed-off-by: NMarcel Apfelbaum <marcel.apfelbaum@gmail.com> (cherry picked from commit 509f57c9) Conflicts: hw/rdma/vmw/pvrdma_cmd.c *drop dependency on 09178217Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
Showing