linux/drivers/gpu/drm/msm
Archit Taneja 9dcfbc182f drm/msm: Fix NULL deref in adreno_load_gpu
The msm/kms driver should work even if there is no GPU device specified
in DT. Currently, we get a NULL dereference crash in adreno_load_gpu
since the driver assumes that priv->gpu_pdev is non-NULL.

Perform an additional check on priv->gpu_pdev before trying to retrieve
the msm_gpu pointer from it.

v2: Incorporate Jordan's comments:
- Simplify the check to share the same error message.
- Use dev_err_once() to avoid an error message every time we open the
  drm device fd.

Fixes: eec874ce5f (drm/msm/adreno: load gpu at probe/bind time)

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Acked-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-01-03 09:36:17 -05:00
..
adreno drm/msm: Fix NULL deref in adreno_load_gpu 2018-01-03 09:36:17 -05:00
dsi Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
edp drm/msm/edp: convert to msm_clk_get() 2017-10-28 11:01:33 -04:00
hdmi drm/msm/hdmi: convert to msm_clk_get() 2017-10-28 11:01:34 -04:00
mdp drm/msm: avoid false-positive -Wmaybe-uninitialized warning 2017-12-13 11:11:55 -05:00
Kconfig drm/msm: gpu: call qcom_mdt interfaces only for ARCH_QCOM 2017-08-01 19:25:51 -04:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
msm_atomic.c drm/msm: update cursors asynchronously through atomic 2017-10-28 14:02:56 -04:00
msm_debugfs.c drm/msm/gpu: use pm-runtime 2017-04-08 06:59:31 -04:00
msm_debugfs.h drm/msm: Remove msm_debugfs_cleanup() 2017-03-08 11:24:45 +01:00
msm_drv.c drm/msm/atomic: switch to drm_atomic_helper_check 2017-10-28 14:02:56 -04:00
msm_drv.h drm/msm: fix msm_rd_dump_submit prototype 2017-12-13 11:01:20 -05:00
msm_fb.c drm/msm: make msm_framebuffer_init() static 2017-08-22 13:20:39 -04:00
msm_fbdev.c Merge tag 'drm-msm-next-2017-08-22' of git://people.freedesktop.org/~robclark/linux into drm-next 2017-08-25 09:29:45 +10:00
msm_fence.c drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_fence.h drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_gem_prime.c drm/msm: Expose our reservation object when exporting a dmabuf. 2017-05-27 13:48:26 -04:00
msm_gem_shrinker.c drm/msm: Separate locking of buffer resources from struct_mutex 2017-06-17 08:03:07 -04:00
msm_gem_submit.c drm/msm: preserve IOVAs in submit's bo table 2017-10-28 13:59:18 -04:00
msm_gem_vma.c drm/msm: NULL pointer dereference in drivers/gpu/drm/msm/msm_gem_vma.c 2017-08-01 18:41:16 -04:00
msm_gem.c drm/msm: fix leak in failed get_pages 2017-12-13 11:12:03 -05:00
msm_gem.h drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_gpu.c drm/msm: gpu: Only sync fences on rings that exist 2017-12-13 15:52:06 -05:00
msm_gpu.h drm/msm: Make the value of RB_CNTL (almost) generic 2017-10-28 11:01:38 -04:00
msm_iommu.c drm/msm: pm runtime support for iommu 2017-04-08 06:59:31 -04:00
msm_kms.h drm/msm/mdp5: Set up runtime PM for MDSS 2017-08-02 07:53:46 -04:00
msm_mmu.h drm/msm: let gpu wire up it's own fault handler 2017-02-06 11:28:42 -05:00
msm_perf.c drm/msm: Remove msm_debugfs_cleanup() 2017-03-08 11:24:45 +01:00
msm_rd.c Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
msm_ringbuffer.c drm/msm: Implement preemption for A5XX targets 2017-10-28 11:01:38 -04:00
msm_ringbuffer.h drm/msm: Implement preemption for A5XX targets 2017-10-28 11:01:38 -04:00
msm_submitqueue.c drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
NOTES