Skip to content

Commit 593b655

Browse files
jason-jh.linChun-Kuang Hu
authored andcommitted
drm/mediatek: Add mbox_free_channel in mtk_drm_crtc_destroy
Add mbox_free_channel in mtk_drm_crtc_destroy. Signed-off-by: jason-jh.lin <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 7627122 commit 593b655

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/mediatek/mtk_drm_crtc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ static void mtk_drm_crtc_destroy(struct drm_crtc *crtc)
156156
mtk_mutex_put(mtk_crtc->mutex);
157157
#if IS_REACHABLE(CONFIG_MTK_CMDQ)
158158
mtk_drm_cmdq_pkt_destroy(&mtk_crtc->cmdq_handle);
159+
160+
if (mtk_crtc->cmdq_client.chan) {
161+
mbox_free_channel(mtk_crtc->cmdq_client.chan);
162+
mtk_crtc->cmdq_client.chan = NULL;
163+
}
159164
#endif
160165
drm_crtc_cleanup(crtc);
161166
}

0 commit comments

Comments
 (0)