Re: [PATCH v2 bpf-next] bpf: Replace kvfree with kfree for kzalloc memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 8/26/25 8:28 PM, Feng Yang wrote:
From: Feng Yang <yangfeng@xxxxxxxxxx>

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/20250811123949.552885-1-rongqianfeng@xxxxxxxx.

Signed-off-by: Feng Yang <yangfeng@xxxxxxxxxx>

Acked-by: Yonghong Song <yonghong.song@xxxxxxxxx>





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux