drivers/gpu/drm/drm_ioc32.c: initialize all fields
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 30 Jan 2012 11:05:55 +0000 (12:05 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:47:32 +0000 (09:47 +0000)
commit08bc3d4e67d486a9b2a5065c1c2ebaf13048a465
treeeeb6fd0aba879c179af56fcab282993be690e083
parent6c073a7ee250118b8be3a2379c96fd7f78382b06
drivers/gpu/drm/drm_ioc32.c: initialize all fields

The c32 structure is allocated on the stack and its idx field is not
initialized before copying it to user level.  This patch takes the value
from the result of the ioctl, as done for the other fields.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_ioc32.c