diff options
author | Mauricio Vasquez B <mauricio.vasquez@polito.it> | 2018-06-29 14:48:20 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-03 23:26:28 +0200 |
commit | ed2b82c03dc187018307c7c6bf9299705f3db383 (patch) | |
tree | 4a208a727bd13dee13aad3b7202b259a6ed4aa5d /samples | |
parent | Merge branch 'af_xdp-fixes' (diff) | |
download | linux-ed2b82c03dc187018307c7c6bf9299705f3db383.tar.xz linux-ed2b82c03dc187018307c7c6bf9299705f3db383.zip |
bpf: hash map: decrement counter on error
Decrement the number of elements in the map in case the allocation
of a new node fails.
Fixes: 6c9059817432 ("bpf: pre-allocate hash map elements")
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions