projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
182407a
)
drm/msm/mdp5: fix crash in error/unload paths
author
Rob Clark
<robdclark@gmail.com>
Fri, 25 Apr 2014 16:30:53 +0000
(12:30 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Fri, 30 May 2014 19:29:42 +0000
(15:29 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
index 47f7bbb9c15ace7bec2606c7d550f30e480c20b1..f3daec4412ad3e9fd6b8f7303a2b27280df7442c 100644
(file)
--- a/
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
+++ b/
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
@@
-85,8
+85,11
@@
static int mdp5_plane_disable(struct drm_plane *plane)
static void mdp5_plane_destroy(struct drm_plane *plane)
{
struct mdp5_plane *mdp5_plane = to_mdp5_plane(plane);
+ struct msm_drm_private *priv = plane->dev->dev_private;
+
+ if (priv->kms)
+ mdp5_plane_disable(plane);
- mdp5_plane_disable(plane);
drm_plane_cleanup(plane);
kfree(mdp5_plane);