Skip to content

Commit

Permalink
vfio-pci: Fix use after free
Browse files Browse the repository at this point in the history
Reported by 0-day test infrastructure.

Fixes: ecaa1f6 ("vfio-pci: Add VGA arbiter client")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information
Alex Williamson committed Apr 8, 2015
1 parent 6eb7018 commit 5a0ff17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vfio/pci/vfio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5a0ff17

Please sign in to comment.