From: Tobias Jakobi Date: Wed, 23 Jul 2014 14:57:12 +0000 (+0200) Subject: drm/exynos: g2d: make ioctls more robust X-Git-Tag: cleanup-for-v3.18~84^2~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd1ea565f3ece26dff3a94bf73e4f6caae140b9;p=pandora-kernel.git 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 Signed-off-by: INki Dae --- Reading git-diff-tree failed