Commit 152a366
bpf: Replace kvfree with kfree for kzalloc memory
These pointers are allocated by kzalloc.
Replace kvfree() with kfree() to avoid unnecessary is_vmalloc_addr()
check in kvfree().
This is the remaining unmodified part from [1].
[1] https://lore.kernel.org/bpf/[email protected].
Signed-off-by: Feng Yang <[email protected]>
Acked-by: Yonghong Song <[email protected]>1 parent bed149f commit 152a366
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
2024 | | - | |
| 2024 | + | |
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
| |||
19651 | 19651 | | |
19652 | 19652 | | |
19653 | 19653 | | |
19654 | | - | |
| 19654 | + | |
19655 | 19655 | | |
19656 | 19656 | | |
19657 | 19657 | | |
| |||
0 commit comments