summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-13 21:19:40 -0400
committerRichard Weinberger <richard@nod.at>2020-10-11 23:12:51 +0200
commitbab991cf40f631d18d00cb8c2a97325c8fd4292e (patch)
treee9a621e1d6e042925c4ed29e50a815634d29af2f /tools/hv
parentba4f184e126b751d1bffad5897f263108befc780 (diff)
downloadlinux-bab991cf40f631d18d00cb8c2a97325c8fd4292e.tar.gz
linux-bab991cf40f631d18d00cb8c2a97325c8fd4292e.tar.bz2
linux-bab991cf40f631d18d00cb8c2a97325c8fd4292e.zip
um: Fix null pointer dereference in vector_user_bpf
The bpf_prog is being checked for !NULL after uml_kmalloc but later its used directly for example: bpf_prog->filter = bpf and is also later returned upon success. Fix this, do a NULL check and return right away. Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tools/hv')
0 files changed, 0 insertions, 0 deletions