[PATCH] drivers/gpu/drm/drm_ioc32.c: initialize all fields

2012-01-30 Thread Julia Lawall
From: Julia Lawall 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 --- An alternative would be to change the ear

[PATCH] drivers/gpu/drm/drm_ioc32.c: initialize all fields

2012-01-30 Thread Julia Lawall
From: Julia Lawall 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 --- An alternative would be to change the ear