From: Shaohua Li Date: Tue, 17 Nov 2009 09:19:23 +0000 (+0800) Subject: drm/i915: handle failure path correctly for lvds X-Git-Tag: v2.6.33-rc1~323^2~5^2~35 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1991bdfaf5897b6fbfdc7dce81508f7cbc044768;p=~shefty%2Frdma-dev.git drm/i915: handle failure path correctly for lvds In failure path, make sure encoder is cleaned up, otherwise there is a kernel oops. Signed-off-by: Shaohua Li Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 95011dfe175..ab48edde4c9 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -1149,5 +1149,6 @@ failed: if (intel_output->ddc_bus) intel_i2c_destroy(intel_output->ddc_bus); drm_connector_cleanup(connector); + drm_encoder_cleanup(encoder); kfree(intel_output); }