Skip to content
Commit 6f130e4d authored by Mohammad Shehar Yaar Tausif's avatar Mohammad Shehar Yaar Tausif Committed by Alexei Starovoitov
Browse files

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: default avatarMohammad Shehar Yaar Tausif <sheharyaar48@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240516072411.42016-1-sheharyaar48@gmail.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 34021cae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment