summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorHongyan Xu <getshell@seu.edu.cn>2026-08-06 14:06:28 +0800
committerDamien Le Moal <dlemoal@kernel.org>2026-08-07 00:55:53 +0900
commit7700a31039cdc6715cb6cce7e7a664ee4e945f67 (patch)
treeae7a05b6b30ed8bf6e196c8cb362f97ce480d923 /tools/perf
parent3971921a055330669b281962ff723d1abb76a58c (diff)
ata: pata_sl82c105: fix bridge revision use-after-free
pci_get_slot() returns a referenced PCI device. Commit 44c10138fd4b ("PCI: Change all drivers to use pci_device->revision") replaced a configuration-space read with direct access to the cached revision field, but left that access after pci_dev_put(). The bridge may therefore be freed before its revision is read. Read the revision before dropping the reference. Fixes: 44c10138fd4b ("PCI: Change all drivers to use pci_device->revision") Signed-off-by: Hongyan Xu <getshell@seu.edu.cn> Reviewed-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions