Commit 5a0ff177 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Fix use after free

Reported by 0-day test infrastructure.

Fixes: ecaa1f6a

 ("vfio-pci: Add VGA arbiter client")
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 6eb70187
......@@ -953,6 +953,7 @@ static int vfio_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (ret) {
iommu_group_put(group);
kfree(vdev);
return ret;
}
if (vfio_pci_is_vga(pdev)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment