Re: [PATCH] bpf: Initialize ret to 0 inside btf_populate_kfunc_set()

From: Alexei Starovoitov
Date: Sat Feb 19 2022 - 20:39:46 EST


On Sat, Feb 19, 2022 at 4:42 PM Kumar Kartikeya Dwivedi
<memxor@xxxxxxxxx> wrote:
>
> On Sat, Feb 19, 2022 at 10:09:15PM IST, Souptick Joarder wrote:
> > From: "Souptick Joarder (HPE)" <jrdr.linux@xxxxxxxxx>
> >
> > Kernel test robot reported below error ->
> >
> > kernel/bpf/btf.c:6718 btf_populate_kfunc_set()
> > error: uninitialized symbol 'ret'.
> >
> > Initialize ret to 0.
> >
> > Fixes: dee872e124e8 ("bpf: Populate kfunc BTF ID sets in struct btf")
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@xxxxxxxxx>
> > ---
>
> Thanks for the fix.
>
> Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>

Applied to bpf-next, since the bug will not trigger in practice.