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)
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>

No differences found