summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_ioctl.c
diff options
context:
space:
mode:
authorMohammed Gamal <mgamal@redhat.com>2021-11-19 12:29:00 +0100
committerDeepak Rawat <drawat.floss@gmail.com>2021-11-23 10:56:12 -0800
commite048834c209a02e3776bcc47d43c6d863e3a67ca (patch)
treeea2dd2b5eae21cd8a1369b64e1601924ee5d1587 /drivers/gpu/drm/virtio/virtgpu_ioctl.c
parentb4a6aaeaf4aa79f23775f6688a7e8db3ee1c1303 (diff)
downloadlinux-stable-e048834c209a02e3776bcc47d43c6d863e3a67ca.tar.gz
linux-stable-e048834c209a02e3776bcc47d43c6d863e3a67ca.tar.bz2
linux-stable-e048834c209a02e3776bcc47d43c6d863e3a67ca.zip
drm/hyperv: Fix device removal on Gen1 VMs
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: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device") Signed-off-by: Mohammed Gamal <mgamal@redhat.com> Reviewed-by: Deepak Rawat <drawat.floss@gmail.com> Signed-off-by: Deepak Rawat <drawat.floss@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211119112900.300537-1-mgamal@redhat.com
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_ioctl.c')
0 files changed, 0 insertions, 0 deletions