drm/i915: Check for dev->primary->master before dereference.
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Mar 2009 23:27:52 +0000 (23:27 +0000)
committerEric Anholt <eric@anholt.net>
Fri, 27 Mar 2009 22:12:17 +0000 (15:12 -0700)
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 <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>

No differences found