Re: [PATCH] drm/hyperv: Fix device removal on Gen1 VMs

2021-11-19 Thread Deepak Rawat
Thanks for the patch. Reviewed-by: Deepak Rawat I will push this to drm-fixes, let me know otherwise. Deepak On Fri, 2021-11-19 at 12:29 +0100, Mohammed Gamal wrote: > 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

[PATCH] drm/hyperv: Fix device removal on Gen1 VMs

2021-11-19 Thread Mohammed Gamal
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 Fixes: 76c56a