[PATCH] Gpu: drm: exynos - Fix possible NULL derefrence.

2017-01-30 Thread Shailendra Verma
of_device_get_match_data could return NULL, and so can cause a NULL pointer dereference later. Signed-off-by: Shailendra Verma <shailendr...@samsung.com> --- drivers/gpu/drm/exynos/exynos_drm_dsi.c |4 drivers/gpu/drm/exynos/exynos_drm_fimd.c |4 drivers/gpu/drm/

[PATCH] Gpu: drm: tegra - Fix possible NULL derefrence.

2017-01-30 Thread Shailendra Verma
of_match_device could return NULL, and so can cause a NULL pointer dereference later. Signed-off-by: Shailendra Verma <shailendr...@samsung.com> --- drivers/gpu/drm/tegra/sor.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra

[PATCH] Gpu: drm: rockchip - Fix possible NULL derefrence.

2017-01-29 Thread Shailendra Verma
of_match_device could return NULL, and so can cause a NULL pointer dereference later. Signed-off-by: Shailendra Verma <shailendr...@samsung.com> --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/g

[PATCH] Gpu: drm: arm: - Fix possible dereference of NULL

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" <shailendr...@samsung.com> There is possible dereference of NULL pointer if kmalloc fails, When function returns.So return NULL if kmalloc fails. Signed-off-by: Shailendra Verma --- drivers/gpu/drm/arm/malidp_planes.c |3 +++ 1 file changed, 3 ins

[PATCH] Gpu: drm: arm: - Fix possible dereference of NULL

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" <shailendr...@samsung.com> There is possible dereference of NULL pointer if kmalloc fails. So return NULL if kmalloc fails. Signed-off-by: Shailendra Verma --- drivers/gpu/drm/arm/malidp_planes.c |3 +++ 1 file changed, 3 insertions(+) diff --git a