Re: [PATCH 1/2] bpf: btf: silence uninitialize variable warnings

2018-04-27 Thread Martin KaFai Lau
On Fri, Apr 27, 2018 at 05:04:09PM +0300, Dan Carpenter wrote: > Smatch complains that size can be uninitialized if btf_type_id_size() > returns NULL. It seems reasonable enough to check for that. > > Signed-off-by: Dan Carpenter > --- > This goes to the BPF tree

[PATCH 1/2] bpf: btf: silence uninitialize variable warnings

2018-04-27 Thread Dan Carpenter
Smatch complains that size can be uninitialized if btf_type_id_size() returns NULL. It seems reasonable enough to check for that. Signed-off-by: Dan Carpenter --- This goes to the BPF tree (linux-next). diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index