summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorJianglei Nie <niejianglei2021@163.com>2025-11-12 20:22:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 17:53:46 +0100
commit47d3949a9b04cbcb0e10abae30c2b53e98706e11 (patch)
tree777749e3e3b7deb66e276c12cf34aee084db9fcf /drivers/fpga/fpga-mgr.c
parente6ab504633e4c06e35377ecf3c8cbc304de79858 (diff)
staging: fbtft: core: fix potential memory leak in fbtft_probe_common()
fbtft_probe_common() allocates a memory chunk for "info" with fbtft_framebuffer_alloc(). When "display->buswidth == 0" is true, the function returns without releasing the "info", which will lead to a memory leak. Fix it by calling fbtft_framebuffer_release() when "display->buswidth == 0" is true. Fixes: c296d5f9957c ("staging: fbtft: core support") Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Abdun Nihaal <abdun.nihaal@gmail.com> Link: https://patch.msgid.link/20251112192235.2088654-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions