xen/pt: Check for return values for xen_host_pci_[get|set] in init
commit3d3697f2576424a2c0830a7b2e7c94c79dea9b50
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Jul 2015 18:33:44 +0000 (2 14:33 -0400)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 10 Sep 2015 16:47:26 +0000 (10 16:47 +0000)
treeff01983d97de3e3d574af3acfb49009a355ed418
parentdf6aa45752bf8145adcba9b077c346e9b758ebd1
xen/pt: Check for return values for xen_host_pci_[get|set] in init

and if we have failures we call xen_pt_destroy introduced in
'xen/pt: Move bulk of xen_pt_unregister_device in its own routine.'
and free all of the allocated structures.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen/xen_pt.c