Skip to content

drm/hyperv: Fix device removal on Gen1 VMs

Mohamed Gamal Morsy requested to merge mgamal-rh/centos-stream-9:bz2018067 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2018067

The Hyper-V DRM driver tries to free MMIO region on removing the device regardless of VM type, while Gen1 VMs don't use MMIO and hence causing the kernel to crash on a NULL pointer dereference.

Fix this by making deallocating MMIO only on Gen2 machines and implement removal for Gen1

Signed-off-by: Mohamed Gamal Morsy mgamal@redhat.com

Edited by Mohamed Gamal Morsy

Merge request reports