Subject: Re: [PATCH] libbpf:fix use empty function pointers in ringbuf_poll

From: Stanislav Fomichev <[email-masked]>
Date: Mon, 5 Jun 2023 10:26:46 -0700

On 06/05, Xin Liu wrote:
> From: zhangmingyi <[email-masked]>
> 
> The sample_cb of the ring_buffer__new interface can transfer NULL. However,
> the system does not check whether sample_cb is NULL during 
> ring_buffer__poll, null pointer is used.

What is the point of calling ring_buffer__new with sample_cb == NULL?