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

Commit 05c6aa5b authored by Vara Reddy's avatar Vara Reddy Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: free roi command packet



Change frees dsi packet after sending the roi
commands everytime. Roi packet memory was getting
leaked before this change.

CRs-Fixed: 2375784
Change-Id: Ia1e708c23830673ebcd7cc1eafea3a13cbf4958f
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
parent b6d002d7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -3699,6 +3699,7 @@ int dsi_panel_send_roi_dcs(struct dsi_panel *panel, int ctrl_idx,
	mutex_unlock(&panel->panel_lock);

	dsi_panel_destroy_cmd_packets(set);
	dsi_panel_dealloc_cmd_packets(set);

	return rc;
}