From: Zhaowei Yuan Date: Wed, 18 Jun 2014 06:33:59 +0000 (+0800) Subject: drm: fix NULL pointer access by wrong ioctl X-Git-Tag: omap-for-v3.16/fixes-rc4~48^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1539fb9bd405ee32282ea0a38404f9e008ac5b7a;p=pandora-kernel.git drm: fix NULL pointer access by wrong ioctl If user uses wrong ioctl command with _IOC_NONE and argument size greater than 0, it can cause NULL pointer access from memset of line 463. If _IOC_NONE, don't memset to 0 for kdata. Signed-off-by: Zhaowei Yuan Reviewed-by: David Herrmann Cc: Signed-off-by: Dave Airlie --- Reading git-diff-tree failed