summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-11 20:39:49 +0800
committerAndrii Nakryiko <andrii@kernel.org>2025-08-12 15:55:01 -0700
commitbf0c2a84df9fb0f7779eb24c30198ef93f292e66 (patch)
treefa371fc47805e8a70f894c99a316bfbd39a6a245 /scripts/lib/kdoc
parentc93c59baa5ab57e94b874000cec56e26611b7a23 (diff)
bpf: Replace kvfree with kfree for kzalloc memory
The 'backedge' pointer is allocated with kzalloc(), which returns physically contiguous memory. Using kvfree() to deallocate such memory is functionally safe but semantically incorrect. Replace kvfree() with kfree() to avoid unnecessary is_vmalloc_addr() check in kvfree(). Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20250811123949.552885-1-rongqianfeng@vivo.com
Diffstat (limited to 'scripts/lib/kdoc')
0 files changed, 0 insertions, 0 deletions