mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
1b3c7a47f9
commit
1991bdfaf5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue