Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c0594a3 authored by Karsten Wiese's avatar Karsten Wiese Committed by Linus Torvalds
Browse files

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ea5a42c2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)) {