summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-08-26 15:31:46 +0800
committerLeon Romanovsky <leon@kernel.org>2026-09-02 12:11:05 -0400
commit08d4d9802d58bf032099091e6acf719f3298f28e (patch)
treec04ad01c639e70d881f9cffa2121049f82f3dc4d /scripts/Makefile.thinlto
parent23d7e03a52ece66b992620aa9b8fa5f164077c0f (diff)
downloadlinux-08d4d9802d58bf032099091e6acf719f3298f28e.tar.gz
linux-08d4d9802d58bf032099091e6acf719f3298f28e.zip
RDMA/uverbs: Fix potential leak of resources->collection in flow_resources_alloc()
The two array allocations are done unconditionally and only checked afterwards, so if the counters allocation fails while the collection allocation succeeds, the error path frees counters and the containing struct but never frees resources->collection, losing the only pointer to it. Fixes: de7498147d00 ("RDMA/uverbs: Refactor flow_resources_alloc() function") Signed-off-by: Li RongQing <lirongqing@baidu.com> Link: https://patch.msgid.link/20260826073146.2203-1-lirongqing@baidu.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions