vfio-pci: Fix use after free
Reported by 0-day test infrastructure.
Fixes: ecaa1f6a01
("vfio-pci: Add VGA arbiter client")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
6eb7018705
commit
5a0ff17741
1 changed files with 1 additions and 0 deletions
|
@ -953,6 +953,7 @@ static int vfio_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
iommu_group_put(group);
|
iommu_group_put(group);
|
||||||
kfree(vdev);
|
kfree(vdev);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vfio_pci_is_vga(pdev)) {
|
if (vfio_pci_is_vga(pdev)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue