From: Chris Wilson Date: Fri, 6 Mar 2009 23:27:52 +0000 (+0000) Subject: drm/i915: Check for dev->primary->master before dereference. X-Git-Tag: v2.6.30-rc1~646^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98787c057fdefdce6230ff46f2c1105835005a4c;p=pandora-kernel.git drm/i915: Check for dev->primary->master before dereference. I've hit the occasional oops inside i915_wait_ring() with an indication of a NULL derefence of dev->primary->master. Adding a NULL check is consistent with the other potential users of dev->primary->master. Signed-off-by: Chris Wilson Signed-off-by: Eric Anholt --- Reading git-diff-tree failed