]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid NULL ctx->obj dereference in debugfs/i915_context_info
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 30 Apr 2014 07:30:00 +0000 (08:30 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 08:56:51 +0000 (10:56 +0200)
commit1dcbcc60e7e86f9e24cf479b181b20fc6a0683d5
treef153559884606399891a0749d0ebfe5d5dabafc3
parentdde6ef01f795f00f73b13faa3c5c33c7cbee3dcf
drm/i915: Avoid NULL ctx->obj dereference in debugfs/i915_context_info

In commit e5ba2d27182109caa597f3614814a2ffe96fe853
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Apr 9 09:07:36 2014 +0100

    drm/i915: Always use kref tracking for all contexts.

we populated fake contexts on all platforms. These were identical to the
full hardware context tracking structs, except for the ctx->obj used to
store the hardware state. However, there remained one place where we
assumed that if a context existed, it would have an object associated
with it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77717
Testcase: igt/drv_suspend/debugfs-reader
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c