drm: Check for a NULL encoder when reverting on error path
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Feb 2009 16:39:21 +0000 (16:39 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2009 02:21:12 +0000 (12:21 +1000)
commite62fb64e6187ea9d8bcedb17ccaa045ed92d4b55
treed2f7e85ed1ce8afd4e36dd2bfe10f9620756ec8e
parent85a7bb98582b60b7e9130159d2464eb0bbac13f7
drm: Check for a NULL encoder when reverting on error path

We need to skip the connectors with a NULL encoder to match the success
path and avoid an OOPS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_crtc_helper.c