Re: [PATCH bpf 1/3] libbpf: ensure umem pointer is non-NULL before dereferencing

2021-03-26 Thread Magnus Karlsson
On Wed, Mar 24, 2021 at 3:46 PM Ciara Loftus wrote: > > Calls to xsk_socket__create dereference the umem to access the > fill_save and comp_save pointers. Make sure the umem is non-NULL > before doing this. > > Fixes: 2f6324a3937f ("libbpf: Support shared umems between queues and > devices") > >

[PATCH bpf 1/3] libbpf: ensure umem pointer is non-NULL before dereferencing

2021-03-24 Thread Ciara Loftus
Calls to xsk_socket__create dereference the umem to access the fill_save and comp_save pointers. Make sure the umem is non-NULL before doing this. Fixes: 2f6324a3937f ("libbpf: Support shared umems between queues and devices") Signed-off-by: Ciara Loftus --- tools/lib/bpf/xsk.c | 3 +++ 1 file