[dpdk-dev] [PATCH] examples: fix unchecked malloc return value in ip_pipeline

2014-12-12 Thread Dumitrescu, Cristian
Acked by: -Original Message- From: Richardson, Bruce Sent: Friday, December 12, 2014 12:24 PM To: dev at dpdk.org; Dumitrescu, Cristian Cc: Richardson, Bruce Subject: [PATCH] examples: fix unchecked malloc return value in ip_pipeline Static analysis shows that once instance of

[dpdk-dev] [PATCH] examples: fix unchecked malloc return value in ip_pipeline

2014-12-12 Thread Bruce Richardson
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