v2: - Change the earlier patch to also handle the error code returned by fb_deferred_io_init() and update Fixes tag to point to the commit that introduced the memory allocation (which leads to leak). - Add second patch to make the error handling order symmetric to fbtft_framebuffer_release() and also remove managed allocation for txbuf as suggested by Andy and Dan.
Link to v1: https://lore.kernel.org/all/[email protected]/ Abdun Nihaal (2): staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() staging: fbtft: cleanup error handling in fbtft_framebuffer_alloc() drivers/staging/fbtft/fbtft-core.c | 39 +++++++++++++++++------------- 1 file changed, 22 insertions(+), 17 deletions(-) -- 2.43.0
