Skip to content

Commit

Permalink
Fix an oops in i915_gem_retire_requests()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karsten Wiese authored and Linus Torvalds committed Feb 24, 2009
1 parent ea5a42c commit 6c0594a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6c0594a

Please sign in to comment.