]> git.baikalelectronics.ru Git - kernel.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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Nov 2012 19:12:49 +0000 (20:12 +0100)
commitc4928151c93069772eb2da6da804d7295d4052e6
tree9ff9b2d4704bfa11520a61010ebcd14a4424c9dd
parentcf90d11ef2e1375a65cb8e980a7f591de09caa7e
drm/i915/sdvo: clean up connectors on intel_sdvo_init() failures

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>
Cc: stable@vger.kernel.org
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>
drivers/gpu/drm/i915/intel_sdvo.c