]> git.baikalelectronics.ru Git - kernel.git/commit
drm: drm_ioctl() should zero-init extra data
authorRob Clark <rob@ti.com>
Sun, 18 Sep 2011 19:38:15 +0000 (14:38 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Oct 2011 13:46:45 +0000 (14:46 +0100)
commitdfbe0243fb8e3bd9f3ca26d759b7a2adcc2b17e0
tree9ecd9d07b76ce0960188e54fa44baf1b6de2dcd8
parent8a51fe504bad03fa2bc6151684b63f398f159940
drm: drm_ioctl() should zero-init extra data

If an older userspace passes in a smaller arg than the current kernel
ioctl arg struct, then extra fields should be initialized to zero
rather than passing random data to the DRM driver.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c