setup: check whether malloc succ before using it

In io_uring_get_probe_ring func, we will call malloc()
to alloc memory for probe. Considering malloc may return NULL,
we should check whether malloc() succ before using it.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
1 file changed