From: Shaohua Li Date: Tue, 17 Nov 2009 09:19:23 +0000 (+0800) Subject: drm/i915: handle failure path correctly for lvds X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1991bdfaf5897b6fbfdc7dce81508f7cbc044768;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 95011dfe1758..ab48edde4c9f 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); }