diff options
| author | Abdun Nihaal <abdun.nihaal@gmail.com> | 2025-06-26 22:54:10 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-30 19:14:38 +0200 |
| commit | eb2cb7dab60f9be0b435ac4a674255429a36d72c (patch) | |
| tree | d9a20e9a7e758eb4fb3225a51bf2759565dde22f /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 60212a07cdcdda03490b2a42681f059b8bbb00dd (diff) | |
staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()
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@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250626172412.18355-1-abdun.nihaal@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
