drm/i915/sdvo: Cleanup connector on error path
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Sep 2010 15:15:21 +0000 (16:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Sep 2010 16:13:33 +0000 (17:13 +0100)
commit123d5c0197d8333c3f5cb9572a0c8299dc611233
tree7a6fb7c4843574339f4be66c16a51f21a0d8b7b2
parent9b74f7348f214b1f99819f0d0da4a1cbabb1e740
drm/i915/sdvo: Cleanup connector on error path

We weren't unlinking the freed connector from the drm lists, and so
hit some use-after-free if we failed to initialise the connector.

Reported-and-tested-by: Woody Suwalski <terraluna977@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=18342
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_sdvo.c