]> www.infradead.org Git - users/hch/misc.git/commit
bpf: Fix order of args in call to bpf_map_kvcalloc
authorMohammad Shehar Yaar Tausif <sheharyaar48@gmail.com>
Thu, 16 May 2024 07:24:11 +0000 (12:54 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 18 May 2024 17:46:16 +0000 (10:46 -0700)
commit6f130e4d4a5f7174f98300376f3994817ad7e21c
tree3d557fc55d69779ddc771515c05f96a2c719ecb3
parent34021caef79f76e70ac31247d321ecd0683c4939
bpf: Fix order of args in call to bpf_map_kvcalloc

The original function call passed size of smap->bucket before the number of
buckets which raises the error 'calloc-transposed-args' on compilation.

Signed-off-by: Mohammad Shehar Yaar Tausif <sheharyaar48@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240516072411.42016-1-sheharyaar48@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/bpf_local_storage.c