summaryrefslogtreecommitdiff
path: root/drivers/oprofile/event_buffer.c
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 /drivers/oprofile/event_buffer.c
parentba4f184e126b751d1bffad5897f263108befc780 (diff)
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 'drivers/oprofile/event_buffer.c')
0 files changed, 0 insertions, 0 deletions