You have to go through all DRM drivers that call drm_fb_helper_fini()
and make sure that they free fb_info. For example armada appears to be
leaking now. [1]
But shouldn't fb_info be freed when unregister_framebuffer() is called
through drm_dev_unregister() ? AFAICT the call chain is the following:
drm_put_dev()
drm_dev_unregister()
drm_client_dev_unregister()
drm_fbdev_client_unregister()
drm_fb_helper_unregister_fbi()
unregister_framebuffer()
do_unregister_framebuffer()
put_fb_info()
drm_fbdev_fb_destroy()
framebuffer_release()
which is the reason why I believe that drm_fb_helper_fini() should be
an internal static function and only called from drm_fbdev_fb_destroy().
Drivers shouldn't really explicitly call this helper in my opinion.
Thanks. That makes sense.
Best regards
Thomas
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature