commit | aa8c962c174dd4439d9abfb3d7ae0d2d69e96438 | [log] [tgz] |
---|---|---|
author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | Fri Feb 19 15:28:38 2021 +0800 |
committer | Zhiqiang Liu <liuzhiqiang26@huawei.com> | Fri Feb 19 15:28:47 2021 +0800 |
tree | 6c496483982c1bd0d7fe548c92dfd79658a47692 | |
parent | 0a3b79c82d11f9d9a65351fd9cc130da50f1da65 [diff] |
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>