]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Fix potential NULL pointer dereference in suspend/resume paths
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 9 Oct 2017 08:43:53 +0000 (10:43 +0200)
committerInki Dae <inki.dae@samsung.com>
Sun, 15 Oct 2017 22:44:48 +0000 (07:44 +0900)
commit00f3d4dd8c510a41d859861c7fa95f13ed9bc60b
treecdcb0d3dae6cf559a8c953168ad734fbf5ce948a
parent41cfa363e01dbc5b3da60122a2fcaf04c325d5a9
drm/exynos: Fix potential NULL pointer dereference in suspend/resume paths

The patch 1a038a9686b0: "drm/exynos: Fix suspend/resume support" introduced
a new code in suspend/resume paths. However it unconditionally dereference
drm_dev pointer, which might be NULL if suspend/resume happens before
Exynos DRM driver components bind. This patch fixes this issue.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 1a038a9686b0 "drm/exynos: Fix suspend/resume support"
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c