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: v3.2.61~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1ec4bfa383ddf85459a3c299db27377ac537d0;p=pandora-kernel.git drm: fix NULL pointer access by wrong ioctl commit 1539fb9bd405ee32282ea0a38404f9e008ac5b7a upstream. 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 Signed-off-by: Dave Airlie [bwh: Backported to 3.2: adjust indentation] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed