]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix unneeded extra initialization in bpf_map_batch_common
authorBrian Vazquez <brianvv@google.com>
Thu, 16 Jan 2020 04:59:18 +0000 (20:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 16 Jan 2020 14:31:52 +0000 (15:31 +0100)
commit480e1e6580abfb9957949b6d1e7b603884a61c97
tree9c1d6041039aa75e86bbb74638aa007f51cb9f07
parent3c04e9fb37079a126f105298f0f1d6ec2b141a21
libbpf: Fix unneeded extra initialization in bpf_map_batch_common

bpf_attr doesn't required to be declared with '= {}' as memset is used
in the code.

Fixes: 13d11ac5e63de ("libbpf: Add libbpf support to batch ops")
Reported-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200116045918.75597-1-brianvv@google.com
tools/lib/bpf/bpf.c