On 08/17/2017 12:02 AM, John Fastabend wrote:
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 <[email protected]>
Signed-off-by: John Fastabend <[email protected]>

Thanks for fixing up quickly!

Acked-by: Daniel Borkmann <[email protected]>

Reply via email to