diff options
| author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-05-17 17:08:43 +0300 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-17 23:44:43 +0300 |
| commit | 0e4364560361d57e8cd873a8990327f3471d7d8a (patch) | |
| tree | 75aa53c02f8f25eeab940f3e62ae5fb779bd8704 /tools/perf/scripts/python/stat-cpi.py | |
| parent | eeacb7166df6ed1cffa923ea04c70043285783b8 (diff) | |
| download | linux-0e4364560361d57e8cd873a8990327f3471d7d8a.tar.xz | |
bpf: sockmap, fix uninitialized variable
There is a potential execution path in which variable err is
returned without being properly initialized previously.
Fix this by initializing variable err to 0.
Addresses-Coverity-ID: 1468964 ("Uninitialized scalar variable")
Fixes: e5cd3abcb31a ("bpf: sockmap, refactor sockmap routines to work with hashmap")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
