Fix an oops in i915_gem_retire_requests()
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>
This commit is contained in:
parent
ea5a42c22e
commit
6c0594a306
@ -1051,6 +1051,9 @@ i915_gem_retire_requests(struct drm_device *dev)
|
|||||||
drm_i915_private_t *dev_priv = dev->dev_private;
|
drm_i915_private_t *dev_priv = dev->dev_private;
|
||||||
uint32_t seqno;
|
uint32_t seqno;
|
||||||
|
|
||||||
|
if (!dev_priv->hw_status_page)
|
||||||
|
return;
|
||||||
|
|
||||||
seqno = i915_get_gem_seqno(dev);
|
seqno = i915_get_gem_seqno(dev);
|
||||||
|
|
||||||
while (!list_empty(&dev_priv->mm.request_list)) {
|
while (!list_empty(&dev_priv->mm.request_list)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user