linux/drivers/gpu/drm/exynos
Tomasz Figa aaa51b13ff drm/exynos: dpi: Fix NULL pointer dereference with legacy bindings
If there is no panel node in DT and instead display timings are provided
directly in FIMD node, there is no panel object created and ctx->panel
becomes NULL. However during Exynos DRM initialization
drm_helper_hpd_irq_event() is called, which in turns calls
exynos_dpi_detect(), which dereferences ctx->panel without a check,
causing a NULL pointer derefrence.

This patch fixes the issue by adding necessary NULL pointer check.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-06-24 11:11:54 +09:00
..
exynos_dp_core.c drm: Remove spurious ';' 2014-06-10 09:35:42 +10:00
exynos_dp_core.h drm/exynos: dp: Use DPCD defines of drm_dp_helper.h 2014-06-02 02:07:06 +09:00
exynos_dp_reg.c drm/exynos: Fix checkpatch warning in exynos_dp_reg.c 2014-06-02 02:07:12 +09:00
exynos_dp_reg.h drm/exynos: Move dp driver from video/ to drm/ 2014-03-24 00:36:34 +09:00
exynos_drm_buf.c drm/exynos: fix return value check in lowlevel_buffer_allocate() 2013-09-16 21:57:08 +09:00
exynos_drm_buf.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_connector.c drm/exynos: Split manager/display/subdrv 2014-03-24 00:36:31 +09:00
exynos_drm_connector.h drm/exynos: Remove dpms link between encoder/connector 2014-03-24 00:36:30 +09:00
exynos_drm_core.c drm/exynos: add component framework support 2014-06-02 02:07:04 +09:00
exynos_drm_crtc.c drm/exynos: add component framework support 2014-06-02 02:07:04 +09:00
exynos_drm_crtc.h drm/exynos: add component framework support 2014-06-02 02:07:04 +09:00
exynos_drm_dmabuf.c drm/exynos: use %pad for dma_addr_t 2014-04-30 09:48:54 +10:00
exynos_drm_dmabuf.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_dpi.c drm/exynos: dpi: Fix NULL pointer dereference with legacy bindings 2014-06-24 11:11:54 +09:00
exynos_drm_drv.c drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
exynos_drm_drv.h drm/exynos: consider deferred probe case 2014-06-02 14:29:39 +09:00
exynos_drm_dsi.c drm/exynos: consider deferred probe case 2014-06-02 14:29:39 +09:00
exynos_drm_encoder.c drm/exynos: Restrict plane loops to only operate on overlay planes (v2) 2014-04-01 20:11:18 -04:00
exynos_drm_encoder.h drm/exynos: Split manager/display/subdrv 2014-03-24 00:36:31 +09:00
exynos_drm_fb.c drm/exynos: delay fbdev initialization until an output is connected 2014-03-24 00:36:39 +09:00
exynos_drm_fb.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fbdev.c drm: add drm_fb_helper_restore_fbdev_mode_unlocked() 2014-06-05 10:02:40 +10:00
exynos_drm_fbdev.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fimc.c drm/exynos/fimc: simplify and rename fimc_dst_get_buf_seq 2014-06-02 02:07:12 +09:00
exynos_drm_fimc.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fimd.c drm/exynos: consider deferred probe case 2014-06-02 14:29:39 +09:00
exynos_drm_g2d.c drm/exynos: call find_vma with the mmap_sem held 2014-06-04 16:54:00 -07:00
exynos_drm_g2d.h drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_gem.c drm/exynos: allocate non-contigous buffers when iommu is enabled 2014-06-02 02:07:09 +09:00
exynos_drm_gem.h Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-01-29 20:49:12 -08:00
exynos_drm_gsc.c drm/exynos/ipp: simplify property list allocation 2014-06-02 02:07:11 +09:00
exynos_drm_gsc.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_iommu.c arm: dma-mapping: remove order parameter from arm_iommu_create_mapping() 2014-02-28 11:55:18 +01:00
exynos_drm_iommu.h arm: dma-mapping: remove order parameter from arm_iommu_create_mapping() 2014-02-28 11:55:18 +01:00
exynos_drm_ipp.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-06-12 11:32:30 -07:00
exynos_drm_ipp.h drm/exynos: ipp: remove description of non-existing field 2014-06-02 02:07:14 +09:00
exynos_drm_plane.c drm/exynos: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS() 2014-03-28 12:57:04 +10:00
exynos_drm_plane.h drm/exynos: Use unsigned long for possible_crtcs 2014-03-24 00:36:31 +09:00
exynos_drm_rotator.c drm/exynos/ipp: simplify property list allocation 2014-06-02 02:07:11 +09:00
exynos_drm_rotator.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_vidi.c drm/exynos: add component framework support 2014-06-02 02:07:04 +09:00
exynos_drm_vidi.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_hdmi.c drm/exynos: hdmi: fix power order issue 2014-06-24 11:11:54 +09:00
exynos_mixer.c drm/exynos: consider deferred probe case 2014-06-02 14:29:39 +09:00
exynos_mixer.h drm/exynos: Remove exynos_drm_hdmi shim 2014-03-24 00:36:32 +09:00
Kconfig drm/exynos/fimd: allow multiplatform configuration 2014-06-02 02:07:15 +09:00
Makefile drm/exynos: add DSIM driver 2014-04-04 21:24:48 +09:00
regs-fimc.h drm/exynos: add device tree support for fimc ipp driver 2013-04-29 14:35:32 +09:00
regs-gsc.h drm/exynos: add gsc ipp driver 2012-12-15 02:40:00 +09:00
regs-hdmi.h drm/exynos: add hdmiphy power on/off sequence 2014-06-02 02:07:15 +09:00
regs-mixer.h drm/exynos: add support for exynos5420 mixer 2013-06-28 21:13:57 +09:00
regs-rotator.h drm/exynos: add rotator ipp driver 2012-12-15 02:39:41 +09:00
regs-vp.h drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00