diff options
| author | Colin Ian King <[email protected]> | 2017-10-10 18:10:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-10 19:24:15 +0000 |
| commit | 442d713baa33db0f78adadee6125c215f10f5a75 (patch) | |
| tree | 023054799d06f4b35cdd7c06d50e261d87c97fee /tools/bpf/bpftool/prog.c | |
| parent | ipv6: fix dereference of rt6_ex before null check error (diff) | |
| download | kernel-442d713baa33db0f78adadee6125c215f10f5a75.tar.gz kernel-442d713baa33db0f78adadee6125c215f10f5a75.zip | |
ipv6: fix incorrect bitwise operator used on rt6i_flags
The use of the | operator always leads to true which looks rather
suspect to me. Fix this by using & instead to just check the
RTF_CACHE entry bit.
Detected by CoverityScan, CID#1457734, #1457747 ("Wrong operator used")
Fixes: 35732d01fe31 ("ipv6: introduce a hash table to store dst cache")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Wei Wang <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
