Subject: Re: [net-next PATCH 1/2] bpf: sockmap state change warning fix

From: Daniel Borkmann <[email-masked]>
Date: Thu, 17 Aug 2017 00:10:46 +0200

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-masked]>
> Signed-off-by: John Fastabend <[email-masked]>

Thanks for fixing up quickly!

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