pci-host: designware: add pcie-msi read method
commit4f2a5202a05fc1612954804a2482f07bff105ea2
authorPrasad J Pandit <pjp@fedoraproject.org>
Tue, 11 Aug 2020 11:41:26 +0000 (11 17:11 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Feb 2021 14:15:32 +0000 (8 15:15 +0100)
treeb53d10fd2fd6ed9c3cfc059783c318de80b57174
parent520f26fc6d17b71a43eaf620e834b3bdf316f3d3
pci-host: designware: add pcie-msi read method

Add pcie-msi mmio read method to avoid NULL pointer dereference
issue.

Reported-by: Lei Sun <slei.casper@gmail.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20200811114133.672647-3-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/pci-host/designware.c