On Thu, 2 Oct 2025, Jani Nikula wrote: > Separating the panic allocation from framebuffer allocation in commit > 729c5f7ffa83 ("drm/{i915,xe}/panic: move framebuffer allocation where it > belongs") failed to deallocate the panic structure anywhere. > > The fix is two-fold. First, free the panic structure in > intel_user_framebuffer_destroy() in the general case. Second, move the > panic allocation later to intel_framebuffer_init() to not leak the panic > structure in error paths (if any, now or later) between > intel_framebuffer_alloc() and intel_framebuffer_init(). > > Fixes: 729c5f7ffa83 ("drm/{i915,xe}/panic: move framebuffer allocation where it belongs") > Cc: Jocelyn Falempe > Cc: Maarten Lankhorst > Reported-by: Micha³ Grzelak > Suggested-by: Ville Syrjälä > Signed-off-by: Jani Nikula Have run a bunch of tests on affected platform, which previously caused the issue to surface. With the patch applied no memleaks are reported. Tested-by: Micha³ Grzelak BR, Micha³