tcp: Use kvmalloc_array() for BPF iterator batches

Use kvmalloc_array() instead of open-coding the element-size
multiplication when allocating the TCP BPF iterator batch.

Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
Weimin Xiong 2026-07-16 10:51:02 +08:00 • committed by Andrii Nakryiko
commit fcf741584a