[dpdk-dev] [PATCH] examples: fix unchecked malloc return value in ip_pipeline
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed Dec 17 01:14:26 CET 2014
> 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 at intel.com>
> Acked by: <Cristian.Dumitrescu at intel.com>
Applied
Thanks
--
Thomas
More information about the dev
mailing list