<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW] NULL pointer dereference in intel_fbdev_invalidate"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101534#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW] NULL pointer dereference in intel_fbdev_invalidate"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101534">bug 101534</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>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)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>