Den 07.01.2019 13.39, skrev Gerd Hoffmann:
>   Hi,
> 
>> If register_framebuffer() fails during fbdev setup we will leak the
>> framebuffer, the GEM buffer and the shadow buffer for defio. This is
>> because drm_fb_helper_fbdev_setup() just calls drm_fb_helper_fini() on
>> error not taking into account that register_framebuffer() can fail.
>>
>> Since the generic emulation uses DRM client for its framebuffer and
>> backing buffer in addition to a shadow buffer, it's necessary to open code
>> drm_fb_helper_fbdev_setup() to properly handle the error path.
>>
>> Error cleanup is removed from .fb_probe and is handled by one function for
>> all paths.
>>
>> Fixes: 9060d7f49376 ("drm/fb-helper: Finish the generic fbdev emulation")
>> Reported-by: Peter Wu <pe...@lekensteyn.nl>
>> Signed-off-by: Noralf Trønnes <nor...@tronnes.org>
> 
> Looks sane to me.
> 
> Acked-by: Gerd Hoffmann <kra...@redhat.com>

Thanks, applied to drm-misc-next.

Noralf.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to