From 741ff9062fcf5627b12277b7b5eb3bf3d391eeee Mon Sep 17 00:00:00 2001 From: Rajkumar Subbiah Date: Tue, 18 Aug 2020 22:43:27 -0400 Subject: [PATCH] disp: msm: dp: init and deinit the lock in dp_mst_connector_list The lock used by the dp debug driver to synchronize the maintenance and usage of the list of mst connectors is not initialized. This change adds the missing initialization and deinitialization calls. Change-Id: I4c24600b47c0b90c256caff45edaea07d082908d Signed-off-by: Rajkumar Subbiah --- msm/dp/dp_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msm/dp/dp_debug.c b/msm/dp/dp_debug.c index 0f156ad95f6f..7610d65eb3be 100644 --- a/msm/dp/dp_debug.c +++ b/msm/dp/dp_debug.c @@ -2445,6 +2445,7 @@ struct dp_debug *dp_debug_get(struct dp_debug_in *in) dp_debug->dp_mst_connector_list.con_id = -1; dp_debug->dp_mst_connector_list.conn = NULL; dp_debug->dp_mst_connector_list.debug_en = false; + mutex_init(&dp_debug->dp_mst_connector_list.lock); dp_debug->max_pclk_khz = debug->parser->max_pclk_khz; @@ -2478,6 +2479,7 @@ void dp_debug_put(struct dp_debug *dp_debug) dp_debug_deinit(dp_debug); + mutex_destroy(&dp_debug->dp_mst_connector_list.lock); mutex_destroy(&debug->lock); if (debug->edid)