Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'vfio-v5.15-rc4' of git://github.com/awilliam/linux-vfio

Pull VFIO fixes from Alex Williamson:

- Fix vfio-ap leak on uninit (Jason Gunthorpe)

- Add missing prototype arg name (Colin Ian King)

* tag 'vfio-v5.15-rc4' of git://github.com/awilliam/linux-vfio:
vfio/ap_ops: Add missed vfio_uninit_group_dev()
vfio/pci: add missing identifier name in argument of function prototype

+4 -2
+3 -1
drivers/s390/crypto/vfio_ap_ops.c
··· 361 361 mutex_lock(&matrix_dev->lock); 362 362 list_del(&matrix_mdev->node); 363 363 mutex_unlock(&matrix_dev->lock); 364 + vfio_uninit_group_dev(&matrix_mdev->vdev); 364 365 kfree(matrix_mdev); 365 366 err_dec_available: 366 367 atomic_inc(&matrix_dev->available_instances); ··· 377 376 mutex_lock(&matrix_dev->lock); 378 377 vfio_ap_mdev_reset_queues(matrix_mdev); 379 378 list_del(&matrix_mdev->node); 379 + mutex_unlock(&matrix_dev->lock); 380 + vfio_uninit_group_dev(&matrix_mdev->vdev); 380 381 kfree(matrix_mdev); 381 382 atomic_inc(&matrix_dev->available_instances); 382 - mutex_unlock(&matrix_dev->lock); 383 383 } 384 384 385 385 static ssize_t name_show(struct mdev_type *mtype,
+1 -1
drivers/vfio/pci/vfio_pci_core.c
··· 565 565 } 566 566 567 567 struct vfio_pci_walk_info { 568 - int (*fn)(struct pci_dev *, void *data); 568 + int (*fn)(struct pci_dev *pdev, void *data); 569 569 void *data; 570 570 struct pci_dev *pdev; 571 571 bool slot;