pvrdma: release device resources in case of an error
commitcce648613bc802be1b894227f7fd94d88476ea07
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 12 Dec 2018 17:58:17 +0000 (12 23:28 +0530)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:57 +0000 (22 11:09 +0200)
tree7b1f0cf065ac6c7c676a9d8b36e756ea4c7d54ff
parent46b69a88241a1e8339a3ffd05050cd418808c71d
pvrdma: release device resources in case of an error

If during pvrdma device initialisation an error occurs,
pvrdma_realize() does not release memory resources, leading
to memory leakage.

Reported-by: Li Qiang <liq3ea@163.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20181212175817.815-1-ppandit@redhat.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_main.c