diff options
| author | 2009-11-17 17:19:23 +0800 | |
|---|---|---|
| committer | 2009-11-25 13:45:55 -0800 | |
| commit | 1991bdfaf5897b6fbfdc7dce81508f7cbc044768 (patch) | |
| tree | 51a34d8cd4d722ebb392e33a8941af08144ed1f5 | |
| parent | drm/i915: Fix LVDS stability issue on Ironlake (diff) | |
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 <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
| -rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |
