]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Fix an oops in i915_gem_retire_requests()
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Mon, 23 Feb 2009 14:07:57 +0000 (15:07 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Feb 2009 01:14:47 +0000 (17:14 -0800)
dev_priv->hw_status_page can be NULL, if i915_gem_retire_requests()
is called from i915_gem_busy_ioctl().

Signed-off-by Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/i915_gem.c

index 25b337438ca737d4148bbc473f68483ece0d40bc..28b726d07a0cf640c16b962f5094f7d8ddc8962c 100644 (file)
@@ -1051,6 +1051,9 @@ i915_gem_retire_requests(struct drm_device *dev)
        drm_i915_private_t *dev_priv = dev->dev_private;
        uint32_t seqno;
 
+       if (!dev_priv->hw_status_page)
+               return;
+
        seqno = i915_get_gem_seqno(dev);
 
        while (!list_empty(&dev_priv->mm.request_list)) {