projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfb7156
)
drm/msm: correct NULL pointer dereference in context_init
author
Brian Masney
<masneyb@onstation.org>
Thu, 27 Jun 2019 02:05:15 +0000
(22:05 -0400)
committer
Sean Paul
<seanpaul@chromium.org>
Mon, 22 Jul 2019 17:40:14 +0000
(13:40 -0400)
Correct attempted NULL pointer dereference in context_init() when
running without an IOMMU.
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Brian Masney <masneyb@onstation.org>
Fixes: 295b22ae596c ("drm/msm: Pass the MMU domain index in struct msm_file_private")
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190627020515.5660-1-masneyb@onstation.org
drivers/gpu/drm/msm/msm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/msm_drv.c
b/drivers/gpu/drm/msm/msm_drv.c
index ab64ab470de742764b36cc338c07c52bd7e39f10..c226156f2dea8d28948c0056ed02974823974b46 100644
(file)
--- a/
drivers/gpu/drm/msm/msm_drv.c
+++ b/
drivers/gpu/drm/msm/msm_drv.c
@@
-619,7
+619,7
@@
static int context_init(struct drm_device *dev, struct drm_file *file)
msm_submitqueue_init(dev, ctx);
- ctx->aspace = priv->gpu
->aspace
;
+ ctx->aspace = priv->gpu
? priv->gpu->aspace : NULL
;
file->driver_priv = ctx;
return 0;