Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1991bdfa authored by Shaohua Li's avatar Shaohua Li Committed by Eric Anholt
Browse files

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: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 1b3c7a47
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1149,5 +1149,6 @@ void intel_lvds_init(struct drm_device *dev)
	if (intel_output->ddc_bus)
		intel_i2c_destroy(intel_output->ddc_bus);
	drm_connector_cleanup(connector);
	drm_encoder_cleanup(encoder);
	kfree(intel_output);
}