mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
disp: msm: dp: cleanup in GKI module unload path
Adds null check to address segmentation faults. Change-Id: Iafb073b88f6b52d1409b3c745bd95c69ea72ec92 Signed-off-by: Orion Brody <obrody@codeaurora.org>
This commit is contained in:
parent
743dc695c4
commit
7abc2b5b81
1 changed files with 2 additions and 1 deletions
|
|
@ -1589,7 +1589,8 @@ static void dp_display_deinit_sub_modules(struct dp_display_private *dp)
|
|||
{
|
||||
dp_debug_put(dp->debug);
|
||||
dp_hpd_put(dp->hpd);
|
||||
dp_audio_put(dp->panel->audio);
|
||||
if (dp->panel)
|
||||
dp_audio_put(dp->panel->audio);
|
||||
dp_ctrl_put(dp->ctrl);
|
||||
dp_panel_put(dp->panel);
|
||||
dp_link_put(dp->link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue