提交 dc501fbc 编写于 作者: B Ben Widawsky 提交者: Keith Packard

drm/i915: Don't call describe_obj on NULL pointers

Reported-by: NPavel Roskin <proski@gnu.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38777
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
Signed-off-by: NKeith Packard <keithp@keithp.com>
上级 d70bed19
...@@ -1207,13 +1207,17 @@ static int i915_context_status(struct seq_file *m, void *unused) ...@@ -1207,13 +1207,17 @@ static int i915_context_status(struct seq_file *m, void *unused)
if (ret) if (ret)
return ret; return ret;
seq_printf(m, "power context "); if (dev_priv->pwrctx) {
describe_obj(m, dev_priv->pwrctx); seq_printf(m, "power context ");
seq_printf(m, "\n"); describe_obj(m, dev_priv->pwrctx);
seq_printf(m, "\n");
}
seq_printf(m, "render context "); if (dev_priv->renderctx) {
describe_obj(m, dev_priv->renderctx); seq_printf(m, "render context ");
seq_printf(m, "\n"); describe_obj(m, dev_priv->renderctx);
seq_printf(m, "\n");
}
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册