disp: msm: dsi: fixes in GKI cleanup path

Creates a deep copy of a struct which previously was shallow.
Also adds null checks which prevent segmentation faults.

Change-Id: I9155f632736fdb30e31f28f55ebe92954956a82d
Signed-off-by: Orion Brody <obrody@codeaurora.org>
This commit is contained in:
Orion Brody
2020-06-03 11:57:44 -07:00
parent a995ee8ca1
commit ee9c09b8b3
2 changed files with 13 additions and 7 deletions

View File

@@ -1967,6 +1967,8 @@ static int dsi_ctrl_dev_remove(struct platform_device *pdev)
mutex_lock(&dsi_ctrl->ctrl_lock);
dsi_ctrl_isr_configure(dsi_ctrl, false);
rc = dsi_ctrl_supplies_deinit(dsi_ctrl);
if (rc)
DSI_CTRL_ERR(dsi_ctrl,