[GIT PULL] VFIO fix for v6.6-rc4

From: Alex Williamson
Date: Tue Sep 26 2023 - 19:16:40 EST


Hi Linus,

The following changes since commit ce9ecca0238b140b88f43859b211c9fdfd8e5b70:

Linux 6.6-rc2 (2023-09-17 14:40:24 -0700)

are available in the Git repository at:

https://github.com/awilliam/linux-vfio.git tags/vfio-v6.6-rc4

for you to fetch changes up to c777b11d34e0f47dbbc4b018ef65ad030f2b283a:

vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent() (2023-09-22 12:48:04 -0600)

----------------------------------------------------------------
VFIO fixes for v6.6-rc4

- The new PDS vfio-pci variant driver only supports SR-IOV VF devices
and incorrectly made a direct reference to the physfn field of the
pci_dev. Fix this both by making the Kconfig depend on IOV support
as well as using the correct wrapper for this access. (Shixiong Ou)

- Resolve an error path issue where on unwind of the mdev registration
the created kset is not unregistered and the wrong error code is
returned. (Jinjie Ruan)

----------------------------------------------------------------
Jinjie Ruan (1):
vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent()

Shixiong Ou (2):
vfio/pds: Add missing PCI_IOV depends
vfio/pds: Use proper PF device access helper

drivers/vfio/mdev/mdev_sysfs.c | 3 ++-
drivers/vfio/pci/pds/Kconfig | 2 +-
drivers/vfio/pci/pds/vfio_dev.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)