]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: g2d: make ioctls more robust
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Wed, 23 Jul 2014 14:57:12 +0000 (16:57 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 4 Aug 2014 04:39:28 +0000 (13:39 +0900)
commitd96a84c407312b0a7978778c53e10293a54956a0
tree45fd7753722b2795c9f81134beed6fb68c664be1
parentbb2c826adc10e51b443928c96a3690401e64ba55
drm/exynos: g2d: make ioctls more robust

Both exynos_g2d_set_cmdlist_ioctl and exynos_g2d_exec_ioctl don't check
if the G2D was succesfully probe. If that is not the case, then g2d_priv
is just NULL and extracting 'dev' from it in the next step  is going to
produce a kernel oops.

Add proper checks and return ENODEV if the G2D is not available.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: INki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c