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

Commit 3685092b authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Avoid oops when capturing NULL ring for inactive pinned buffers

parent 5f75377d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ static u32 capture_bo_list(struct drm_i915_error_buffer *err,
		err->tiling = obj->tiling_mode;
		err->dirty = obj->dirty;
		err->purgeable = obj->madv != I915_MADV_WILLNEED;
		err->ring = obj->ring->id;
		err->ring = obj->ring ? obj->ring->id : 0;

		if (++i == count)
			break;
+3 −3

File changed.

Contains only whitespace changes.