[PATCH] staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()
Dan Carpenter
dan.carpenter at linaro.org
Thu Jun 26 18:02:33 UTC 2025
On Thu, Jun 26, 2025 at 10:54:10PM +0530, Abdun Nihaal wrote:
> In the error paths after fb_info structure is successfully allocated,
> the memory allocated in fb_deferred_io_init() for info->pagerefs is not
> freed. Fix that by adding the cleanup function on the error path.
>
> Fixes: c296d5f9957c ("staging: fbtft: core support")
> Signed-off-by: Abdun Nihaal <abdun.nihaal at gmail.com>
> ---
Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>
regards,
dan carpenter
More information about the dri-devel
mailing list