From: Mika Kuoppala Date: Fri, 3 May 2013 13:29:08 +0000 (+0300) Subject: drm/i915: unreference default context on module unload X-Git-Tag: v3.11-rc1~65^2~131^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168f83660211b9e059e3bc0638daaa01e9ea0b71;p=pandora-kernel.git drm/i915: unreference default context on module unload Before module unload is called, gpu_idle() will switch to default context. This will increment ref count of base object as the default context is 'running' on module unload time. Unreference the drm object so that when context is freed, base object is freed as well. v2: added comment to explain the refcounts (Ben Widawsky) Signed-off-by: Mika Kuoppala Reviewed-by: Ben Widawsky Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed