On Thu, 2024-08-29 at 18:22 -0700, Martin KaFai Lau wrote: > From: Martin KaFai Lau <martin.lau@xxxxxxxxxx> > > The pointer returned by btf_parse_base could be an error pointer. > IS_ERR() check is needed before calling btf_free(base_btf). > > Cc: Alan Maguire <alan.maguire@xxxxxxxxxx> > Fixes: 8646db238997 ("libbpf,bpf: Share BTF relocate-related code with kernel") > Signed-off-by: Martin KaFai Lau <martin.lau@xxxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...]