[dpdk-dev] [RFC PATCH 1/5] graph: introduce graph subsystem
Stephen Hemminger
stephen at networkplumber.org
Sun Feb 2 11:35:23 CET 2020
On Fri, 31 Jan 2020 22:31:57 +0530
<jerinj at marvell.com> wrote:
> + /* Create graph object */
> + graph = calloc(1, sizeof(*graph));
> + if (graph == NULL)
> + set_err(ENOMEM, fail, "failed to calloc graph object");
This won't be safe if used in primary/secondary process model.
You would need to use rte_calloc etc to allow this.
More information about the dev
mailing list