numam-dpdk/examples/ip_pipeline
Bruce Richardson 95df1d78c6 examples/ip_pipeline: fix memory allocation check
Static analysis shows that once instance of rte_zmalloc is missing
a return value check in the code. This is fixed by adding a return
value check. The malloc call itself is moved to earlier in the function
so that no work is done unless all memory allocation requests have
succeeded - thereby removing the need for rollback on error.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2014-12-17 01:04:06 +01:00
..
cmdline.c examples/ip_pipeline: fix memory allocation check 2014-12-17 01:04:06 +01:00
config.c eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
init.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
ip_pipeline.cfg examples/pipeline: packet framework sample 2014-06-17 03:34:11 +02:00
ip_pipeline.sh examples/pipeline: packet framework sample 2014-06-17 03:34:11 +02:00
main.c examples: no more bare metal environment 2014-11-27 13:09:59 +01:00
main.h examples: no more bare metal environment 2014-11-27 13:09:59 +01:00
Makefile mbuf: rename RTE_MBUF_SCATTER_GATHER into RTE_MBUF_REFCNT 2014-09-17 11:27:50 +02:00
pipeline_firewall.c mbuf: remove rte_ctrlmbuf 2014-09-17 11:27:50 +02:00
pipeline_flow_classification.c mbuf: remove rte_ctrlmbuf 2014-09-17 11:27:50 +02:00
pipeline_ipv4_frag.c examples/pipeline: packet framework sample 2014-06-17 03:34:11 +02:00
pipeline_ipv4_ras.c examples/pipeline: packet framework sample 2014-06-17 03:34:11 +02:00
pipeline_passthrough.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
pipeline_routing.c mbuf: remove rte_ctrlmbuf 2014-09-17 11:27:50 +02:00
pipeline_rx.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
pipeline_tx.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00