aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-11-13 09:29:26 +0000
committerAlexei Starovoitov <ast@kernel.org>2018-11-16 20:48:27 -0800
commit592ee43faf860c1f2c0a4c11838db6fdb974bb78 (patch)
treeabe6c9b8ad2e8cf99300ea96fc6e78c3bfaa6810 /tools
parentbpftool: make libbfd optional (diff)
downloadlinux-dev-592ee43faf860c1f2c0a4c11838db6fdb974bb78.tar.xz
linux-dev-592ee43faf860c1f2c0a4c11838db6fdb974bb78.zip
bpf: fix null pointer dereference on pointer offload
Pointer offload is being null checked however the following statement dereferences the potentially null pointer offload when assigning offload->dev_state. Fix this by only assigning it if offload is not null. Detected by CoverityScan, CID#1475437 ("Dereference after null check") Fixes: 00db12c3d141 ("bpf: call verifier_prep from its callback in struct bpf_offload_dev") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions