]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Check for dev->primary->master before dereference.
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Apr 2009 02:40:20 +0000 (19:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:53 +0000 (10:36 -0700)
commit89051add552d18e1f212a5111e7e8a059a67ae10
treed9a4a97e102ffa7b28d4aa17b7c76972cbbaee4e
parentc780bee65d7bb5aa637147ca64f4a5d51716dc1d
drm/i915: Check for dev->primary->master before dereference.

upstream commit: 98787c057fdefdce6230ff46f2c1105835005a4c

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/gpu/drm/i915/i915_dma.c