drm/i915: fix invalid reference handling of the default ctx obj
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 15 Jul 2012 11:34:23 +0000 (12:34 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Jul 2012 08:39:58 +0000 (10:39 +0200)
commitb259b3120607f642daabdaadc99430a306899ffe
tree4da2ddab5e4470ca1b89f47ff1b2c1fec7806e3e
parenteeef9b3874d756405ab8f71b4012a2e7ce31458e
drm/i915: fix invalid reference handling of the default ctx obj

Otherwise we end up trying to unpin a freed object and BUG.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c