diff options
| author | Guangshuo Li <lgs201920130244@gmail.com> | 2026-10-27 23:09:21 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-11-04 14:11:08 +0100 |
| commit | a36b3db60466d44eefcc5c252ce927c043429922 (patch) | |
| tree | f092f373f9937faeb9e273ac8f6335d2b1f83a32 /kernel/debug/debug_core.c | |
| parent | 824a27d391cf934d3232e8e2dabee221fc4e18ae (diff) | |
misc: bcm-vk: fix DMA allocation memory leak
bcm_vk_dma_alloc() leaks dma->pages and pinned user-page references
when page pinning or coherent SG allocation fails. DMA mapping
failures can also leave the SG list and earlier mappings unreleased,
as bcm_vk_sg_alloc() skips the partially initialized slot.
This issue was found by our static analysis tool under development.
Fixes: 111d746bb476 ("misc: bcm-vk: add VK messaging support")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Link: https://patch.msgid.link/20261027150921.137189-1-lgs201920130244@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions
