Skip to content
Snippets Groups Projects
user avatar
Bruce Richardson authored
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: default avatarBruce Richardson <bruce.richardson@intel.com>
Acked-by: default avatarCristian Dumitrescu <cristian.dumitrescu@intel.com>
95df1d78
History
Name Last commit Last update