]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: Correct dpu destroy and disable order
authorJayant Shekhar <jshekhar@codeaurora.org>
Fri, 2 Nov 2018 12:49:17 +0000 (18:19 +0530)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:07:08 +0000 (13:07 -0500)
commit8d6419de873f2488918bca52ffea0e21f18ecae4
treee78f73afde1a5fa9003e14a01c1adaee23aade41
parentb18a1d95758d6ad2178f10fcc857a7c4bf64049e
drm/msm/dpu: Correct dpu destroy and disable order

In case of msm drm bind failure, dpu_mdss_destroy is triggered.
In this function, resources are freed and pm runtime disable is
called, which triggers dpu_mdss_disable. Now in dpu_mdss_disable,
driver tries to access a memory which is already freed. This
results in kernel panic. Fix this by ensuring proper sequence
of dpu destroy and disable calls.

Changes in v2:
   - Removed double spacings [Jeykumar]

Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c