]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: g2d: fix null pointer dereference
authorInki Dae <inki.dae@samsung.com>
Fri, 7 Nov 2014 11:31:08 +0000 (20:31 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 24 Nov 2014 09:02:48 +0000 (18:02 +0900)
commitf7a51cb0d8dea802a56bedd736a59fc2fd628725
tree2cd9e0fadcc37aac13ebea261c9bc2a811b48caa
parentcc8d9c8223afd58f8285834f5e40975c87ba3b8d
drm/exynos: g2d: fix null pointer dereference

This patch fixes a null pointer dereference issue incurred by
calling g2d_remove when exynos_drm_platform_probe is failed.

cmdlist_pool of g2d is allocated when g2d sub driver is probed.
So if exynos_drm_platform_probe is failed, the g2d sub driver is
not probed and the cmdlist_pool is still NULL.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c