[PATCH] udl: zero out struct fb_deferred_io on allocation

2013-01-20 Thread Nickolai Zeldovich
Ensure all fields of the struct fb_deferred_io are zeroed out on init, otherwise the fbdefio->first_io function pointer can contain garbage, and fb_deferred_io_mkwrite() will end up jumping to this garbage address. Signed-off-by: Nickolai Zeldovich --- drivers/gpu/drm/udl/udl_fb.c |2 +-

[PATCH] udl: zero out struct fb_deferred_io on allocation

2013-01-18 Thread Nickolai Zeldovich
Ensure all fields of the struct fb_deferred_io are zeroed out on init, otherwise the fbdefio->first_io function pointer can contain garbage, and fb_deferred_io_mkwrite() will end up jumping to this garbage address. Signed-off-by: Nickolai Zeldovich --- drivers/gpu/drm/udl/udl_fb.c |2 +-