diff options
author | 2017-08-16 15:02:12 -0700 | |
---|---|---|
committer | 2017-08-16 15:34:13 -0700 | |
commit | cf56e3b98c5358883c8df5ed8e04661481225a8f (patch) | |
tree | beb2cb4c505c1164b06db372da24c208dec59873 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: sched: cls_flower: fix ndo_setup_tc type for stats call (diff) | |
download | wireguard-linux-cf56e3b98c5358883c8df5ed8e04661481225a8f.tar.xz wireguard-linux-cf56e3b98c5358883c8df5ed8e04661481225a8f.zip |
bpf: sockmap state change warning fix
psock will uninitialized in default case we need to do the same psock lookup
and check as in other branch. Fixes compile warning below.
kernel/bpf/sockmap.c: In function ‘smap_state_change’:
kernel/bpf/sockmap.c:156:21: warning: ‘psock’ may be used uninitialized in this function [-Wmaybe-uninitialized]
struct smap_psock *psock;
Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions