Skip to content
Commit bab991cf authored by Gaurav Singh's avatar Gaurav Singh Committed by Richard Weinberger
Browse files

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: default avatarGaurav Singh <gaurav1086@gmail.com>
Acked-By: default avatarAnton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent ba4f184e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment