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: NZhaowei Yuan <zhaowei.yuan@samsung.com> Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: NDave Airlie <airlied@redhat.com>
Showing
drivers/gpu/drm/drm_drv.c
100644 → 100755
想要评论请 注册 或 登录