diff options
| author | Philipp Stanner <[email protected]> | 2025-06-10 13:54:14 +0000 |
|---|---|---|
| committer | Niklas Cassel <[email protected]> | 2025-06-11 10:27:54 +0000 |
| commit | 3e5378779091c2f9a96d4404066e1923c92ceb8b (patch) | |
| tree | 484f71fd5e7364725fac089c0be4a1811fd9d92d /rust/helpers/helpers.c | |
| parent | ata: pata_cs5536: fix build on 32-bit UML (diff) | |
| download | kernel-3e5378779091c2f9a96d4404066e1923c92ceb8b.tar.gz kernel-3e5378779091c2f9a96d4404066e1923c92ceb8b.zip | |
ata: pata_macio: Fix PCI region leak
pci_request_regions() became a managed devres functions if the PCI
device was enabled with pcim_enable_device(), which is the case for
pata_macio.
The PCI subsystem recently removed this hybrid feature from
pci_request_region(). When doing so, pata_macio was forgotten to be
ported to use pcim_request_all_regions(). If that function is not used,
pata_macio will fail on driver-reload because the PCI regions will
remain blocked.
Fix the region leak by replacing pci_request_regions() with its managed
counterpart, pcim_request_all_regions().
Fixes: 51f6aec99cb0 ("PCI: Remove hybrid devres nature from request functions")
Signed-off-by: Philipp Stanner <[email protected]>
Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Niklas Cassel <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
