[PATCH 0/3] pci, pcie_sriov fixes (null dereferences, checks)

Daniel Paziyski posted 3 patches 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261101162132.147838-1-danielpaziyski@gmail.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>
hw/pci/pci.c                | 11 +++++++----
hw/pci/pcie_sriov.c         | 21 ++++++++++++++++++++-
include/hw/pci/pcie_sriov.h |  2 ++
3 files changed, 29 insertions(+), 5 deletions(-)
[PATCH 0/3] pci, pcie_sriov fixes (null dereferences, checks)
Posted by Daniel Paziyski 3 weeks ago
The first patch fixes a null pointer deference on pci device registration
failure, caused by the accidental merge of 432ea8cc7d27
("pcie_sriov: register user created virtual function before realizing it").

The second patch reintroduces some checks done before that commit, which are
present in the v2 of the patch introduced by the mentioned commit, but due
to the accidental merge they are included in this series.

The third patch fixes a null dereference that I have discovered testing the
previous two patches, it is not a big deal since it only occurs during device
realization of a PF of device created VFs without an ID, when there are already
user created VFs, but is still nice to have fixed.

Cc: qemu-stable@nongnu.org

Daniel Paziyski (3):
  pci: fix null pointer dereference on pci device registration failure
  pcie_sriov: perform additional checks after pci device realization
  pcie_sriov: fix null pointer dereference when initializing PFs in a
    system with user and device created VFs

 hw/pci/pci.c                | 11 +++++++----
 hw/pci/pcie_sriov.c         | 21 ++++++++++++++++++++-
 include/hw/pci/pcie_sriov.h |  2 ++
 3 files changed, 29 insertions(+), 5 deletions(-)

-- 
2.56.0