[PATCH] drm/exynos: Fix potential NULL pointer dereference in suspend/resume paths

2017-10-09 Thread Marek Szyprowski
The patch 6e8edf8a7d8d: "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:

[PATCH] drm/exynos: Fix potential NULL pointer dereference

2012-09-21 Thread Inki Dae
Applied. Thanks, Inki Dae 2012/9/18 Sachin Kamat : > drm_mode_create() returns NULL if it fails to create > a new display mode. Check the value returned to avoid NULL > pointer deferencing later. > > Signed-off-by: Sachin Kamat > --- > drivers/gpu/drm/exynos/exynos_drm_connector.c |6

Re: [PATCH] drm/exynos: Fix potential NULL pointer dereference

2012-09-21 Thread Inki Dae
Applied. Thanks, Inki Dae 2012/9/18 Sachin Kamat sachin.ka...@linaro.org: drm_mode_create() returns NULL if it fails to create a new display mode. Check the value returned to avoid NULL pointer deferencing later. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org ---

[PATCH] drm/exynos: Fix potential NULL pointer dereference

2012-09-18 Thread Sachin Kamat
drm_mode_create() returns NULL if it fails to create a new display mode. Check the value returned to avoid NULL pointer deferencing later. Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_connector.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git

[PATCH] drm/exynos: Fix potential NULL pointer dereference

2012-09-18 Thread Sachin Kamat
drm_mode_create() returns NULL if it fails to create a new display mode. Check the value returned to avoid NULL pointer deferencing later. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- drivers/gpu/drm/exynos/exynos_drm_connector.c |6 +- 1 files changed, 5 insertions(+), 1