Commit bf0c2a8
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]1 parent c93c59b commit bf0c2a8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19553 | 19553 | | |
19554 | 19554 | | |
19555 | 19555 | | |
19556 | | - | |
| 19556 | + | |
19557 | 19557 | | |
19558 | 19558 | | |
19559 | 19559 | | |
| |||
0 commit comments