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

Commit b1dd9f0c authored by Alan Kwong's avatar Alan Kwong Committed by Jeevan Shriram
Browse files

msm: sde: Correct resource release upon rotator exit



This patch turns off clock and bus control as well releases other
software resources upon driver exit.  This patch
corrects crash due to resource leakage.

CRs-Fixed: 1018309
Change-Id: Ie0c6639fff9b829a58e12037f88c6508864b60a0
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent b1b3223e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2423,13 +2423,15 @@ int sde_rotator_core_init(struct sde_rot_mgr **pmgr,
error_init_queue:
	mgr->ops_hw_destroy(mgr);
error_hw_init:
error_map_hw_ops:
	sde_rotator_clk_ctrl(mgr, false);
	sde_rotator_resource_ctrl(mgr, false);
	pm_runtime_disable(mgr->device);
	sde_rotator_res_destroy(mgr);
error_res_init:
error_parse_dt:
	sysfs_remove_group(&mgr->device->kobj, &sde_rotator_fs_attr_group);
error_create_sysfs:
error_map_hw_ops:
	devm_kfree(&pdev->dev, mgr);
	*pmgr = NULL;
	return ret;