]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915/sdvo: clean up connectors on intel_sdvo_init() failures
authorJani Nikula <jani.nikula@intel.com>
Mon, 12 Nov 2012 16:31:35 +0000 (18:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:17 +0000 (12:14 -0800)
commit93010a5f6f58093d5d2204a61cdaf6bf17848d09
tree651398d67058c85c04a652912b8d8ff058b6e0c0
parent09390c7bc9fe02c5d5565d9701e2c26c94c08c96
drm/i915/sdvo: clean up connectors on intel_sdvo_init() failures

commit d0ddfbd3d1346c1f481ec2289eef350cdba64b42 upstream.

Any failures in intel_sdvo_init() after the intel_sdvo_setup_output() call
left behind ghost connectors, attached (with a dangling pointer) to the
sdvo that has been cleaned up and freed. Properly destroy any connectors
attached to the encoder.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=46381
CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: bjo@nord-west.org
[danvet: added a comment to explain why we need to clean up connectors
even when sdvo_output_setup fails.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_sdvo.c