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/
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
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
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
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