diff options
author | Philipp Stanner <pstanner@redhat.com> | 2024-06-13 13:50:26 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-07-11 16:20:15 -0500 |
commit | f00059b4c1b068df108c70f86749b23f9080d2ba (patch) | |
tree | 0e708ae97c53dd45a0eac4d283796bfa1a7b3eda /mm | |
parent | ad78e05d654567e0a96f91d5db198469ddc2d4fb (diff) | |
download | linux-f00059b4c1b068df108c70f86749b23f9080d2ba.tar.gz linux-f00059b4c1b068df108c70f86749b23f9080d2ba.tar.bz2 linux-f00059b4c1b068df108c70f86749b23f9080d2ba.zip |
drm/vboxvideo: fix mapping leaks
When the PCI devres API was introduced to this driver, it was wrongly
assumed that initializing the device with pcim_enable_device() instead of
pci_enable_device() will make all PCI functions managed.
This is wrong and was caused by the quite confusing PCI devres API in which
some, but not all, functions become managed that way.
The function pci_iomap_range() is never managed.
Replace pci_iomap_range() with the managed function pcim_iomap_range().
Fixes: 8558de401b5f ("drm/vboxvideo: use managed pci functions")
Link: https://lore.kernel.org/r/20240613115032.29098-14-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Krzysztof WilczyĆski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions