diff options
| author | Michael Kelley <[email protected]> | 2025-02-10 19:34:41 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2025-03-09 23:46:56 +0000 |
| commit | aed709355fd05ef747e1af24a1d5d78cd7feb81e (patch) | |
| tree | c7f500bd8224970c74ddd26e21c1eb49fa237b95 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | fbdev: hyperv_fb: iounmap() the correct memory when removing a device (diff) | |
| download | kernel-aed709355fd05ef747e1af24a1d5d78cd7feb81e.tar.gz kernel-aed709355fd05ef747e1af24a1d5d78cd7feb81e.zip | |
drm/hyperv: Fix address space leak when Hyper-V DRM device is removed
When a Hyper-V DRM device is probed, the driver allocates MMIO space for
the vram, and maps it cacheable. If the device removed, or in the error
path for device probing, the MMIO space is released but no unmap is done.
Consequently the kernel address space for the mapping is leaked.
Fix this by adding iounmap() calls in the device removal path, and in the
error path during device probing.
Fixes: f1f63cbb705d ("drm/hyperv: Fix an error handling path in hyperv_vmbus_probe()")
Fixes: a0ab5abced55 ("drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size")
Signed-off-by: Michael Kelley <[email protected]>
Reviewed-by: Saurabh Sengar <[email protected]>
Tested-by: Saurabh Sengar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
