xen_pt_msi.c: Check for xen_host_pci_get_* failures in xen_pt_msix_init()
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 9 Jul 2017 16:37:22 +0000 (17:37 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 20:27:04 +0000 (13:27 -0700)
commit64c7c1175b4e3e6fe005934cde63259d8adad392
treed28eb3ea6004e1499732930e106c636060df0734
parenta19bae42e341a05f43f685fc9ff0e19ba6f129c3
xen_pt_msi.c: Check for xen_host_pci_get_* failures in xen_pt_msix_init()

Check the return status of the xen_host_pci_get_* functions we call in
xen_pt_msix_init(), and fail device init if the reads failed rather than
ploughing ahead. (Spotted by Coverity: CID 777338.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen_pt_msi.c