summaryrefslogtreecommitdiff
path: root/rust/kernel/ioctl.rs
diff options
context:
space:
mode:
authorAbdun Nihaal <abdun.nihaal@gmail.com>2025-06-26 22:54:10 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-15 16:38:30 +0200
commit47b3d6e8921bbb7b65c2dab8eaa8864901848c1c (patch)
tree2b50855c80dc944006c25d1940c6044a8adf6afa /rust/kernel/ioctl.rs
parent19dedd4f70f5a6505e7c601ef7dd40542d1d9aa5 (diff)
staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()
[ Upstream commit eb2cb7dab60f9be0b435ac4a674255429a36d72c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel/ioctl.rs')
0 files changed, 0 insertions, 0 deletions