]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c9a1229241692483bfd3de37afa1551b83f4865
treeeeb6fd0aba879c179af56fcab282993be690e083
parent120890f5452ae9bfee5ddcf9f70820080e6aefa9
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