diff options
author | Shaohua Li | 2009-11-17 10:19:23 +0100 |
---|---|---|
committer | Eric Anholt | 2009-11-25 22:45:55 +0100 |
commit | 1991bdfaf5897b6fbfdc7dce81508f7cbc044768 (patch) | |
tree | 51a34d8cd4d722ebb392e33a8941af08144ed1f5 /drivers/gpu/drm | |
parent | drm/i915: Fix LVDS stability issue on Ironlake (diff) | |
download | kernel-qcow2-linux-1991bdfaf5897b6fbfdc7dce81508f7cbc044768.tar.gz kernel-qcow2-linux-1991bdfaf5897b6fbfdc7dce81508f7cbc044768.tar.xz kernel-qcow2-linux-1991bdfaf5897b6fbfdc7dce81508f7cbc044768.zip |
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>
Diffstat (limited to 'drivers/gpu/drm')
-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); } |