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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user