diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index a0f1bd7..a48d228 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2056,10 +2056,12 @@ static int i915_dump_lrc(struct seq_file *m, void *unused) if (ret) return ret; - list_for_each_entry(ctx, &dev_priv->context_list, link) - if (ctx != dev_priv->kernel_context) + list_for_each_entry(ctx, &dev_priv->context_list, link) { + if (ctx != dev_priv->kernel_context) { for_each_ring(ring, dev_priv, i) i915_dump_lrc_obj(m, ctx, ring); + } + } mutex_unlock(&dev->struct_mutex);