aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2021-03-30 09:53:06 -0600
committerAlex Williamson <[email protected]>2021-04-06 11:55:10 -0600
commit61e90817482871b614133c0f20feb1aba2faec86 (patch)
treeca022677fb79a01580f780fe92c3c9de84b7a526 /tools/perf/scripts/python/export-to-sqlite.py
parent0ca78666fa06cf2a7d068a593428dc4039706e00 (diff)
vfio/pci: Move VGA and VF initialization to functions
vfio_pci_probe() is quite complicated, with optional VF and VGA sub components. Move these into clear init/uninit functions and have a linear flow in probe/remove. This fixes a few little buglets: - vfio_pci_remove() is in the wrong order, vga_client_register() removes a notifier and is after kfree(vdev), but the notifier refers to vdev, so it can use after free in a race. - vga_client_register() can fail but was ignored Organize things so destruction order is the reverse of creation order. Fixes: ecaa1f6a0154 ("vfio-pci: Add VGA arbiter client") Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: Eric Auger <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions