diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c index c6de1393df63d74a80abd865e4a36c19c799a821..41b41fcc0466581b764dee26ac70cce13fe2be70 100644 --- a/kernel/bpf/sockmap.c +++ b/kernel/bpf/sockmap.c @@ -1713,7 +1713,7 @@ static int __sock_map_ctx_update_elem(struct bpf_map *map, struct smap_psock_map_entry *e = NULL; struct smap_psock *psock; bool new = false; - int err; + int err = 0; /* 1. If sock map has BPF programs those will be inherited by the * sock being added. If the sock is already attached to BPF programs