summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPeter Oskolkov <posk@google.com>2019-01-16 10:43:01 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-01-17 10:40:16 +0100
commitd0b2818efbe27e6c2e0c52621c8db18eb5abb5e1 (patch)
tree5c56548f2657341295bbe2fd9a02fe4ff96c29c6 /Documentation
parent4edc01b846b765fed615ce84cc204453bd983dbf (diff)
downloadlinux-d0b2818efbe27e6c2e0c52621c8db18eb5abb5e1.tar.gz
linux-d0b2818efbe27e6c2e0c52621c8db18eb5abb5e1.tar.bz2
linux-d0b2818efbe27e6c2e0c52621c8db18eb5abb5e1.zip
bpf: fix a (false) compiler warning
An older GCC compiler complains: kernel/bpf/verifier.c: In function 'bpf_check': kernel/bpf/verifier.c:4***:13: error: 'prev_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized] } else if (krecord[i].insn_offset <= prev_offset) { ^ kernel/bpf/verifier.c:4***:38: note: 'prev_offset' was declared here u32 i, nfuncs, urec_size, min_size, prev_offset; Although the compiler is wrong here, the patch makes sure that prev_offset is always initialized, just to silence the warning. v2: fix a spelling error in the commit message. Signed-off-by: Peter Oskolkov <posk@google.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions