[Bug 101534] [HSW] NULL pointer dereference in intel_fbdev_invalidate
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jun 22 15:53:02 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101534
--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/drivers/gpu/drm/i915/intel_fbdev.c
b/drivers/gpu/drm/i915/intel_fbdev.c
index 03347c6ae599..7ffbd17fa692 100644
--- a/drivers/gpu/drm/i915/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/intel_fbdev.c
@@ -765,7 +765,7 @@ void intel_fbdev_set_suspend(struct drm_device *dev, int
state, bool synchronous
struct intel_fbdev *ifbdev = dev_priv->fbdev;
struct fb_info *info;
- if (!ifbdev || !ifbdev->fb)
+ if (!ifbdev || !ifbdev->vma)
return;
info = ifbdev->helper.fbdev;
@@ -812,7 +812,7 @@ void intel_fbdev_output_poll_changed(struct drm_device
*dev)
{
struct intel_fbdev *ifbdev = to_i915(dev)->fbdev;
- if (ifbdev && ifbdev->fb)
+ if (ifbdev && ifbdev->vma)
drm_fb_helper_hotplug_event(&ifbdev->helper);
}
@@ -824,7 +824,7 @@ void intel_fbdev_restore_mode(struct drm_device *dev)
return;
intel_fbdev_sync(ifbdev);
- if (!ifbdev->fb)
+ if (!ifbdev->vma)
return;
if (drm_fb_helper_restore_fbdev_mode_unlocked(&ifbdev->helper) == 0)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170622/4cb35ad8/attachment.html>
More information about the intel-gfx-bugs
mailing list