Skip to content
Commit ed2b82c0 authored by Mauricio Vasquez B's avatar Mauricio Vasquez B Committed by Daniel Borkmann
Browse files

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: 6c905981 ("bpf: pre-allocate hash map elements")
Signed-off-by: default avatarMauricio Vasquez B <mauricio.vasquez@polito.it>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 39d393cf
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