[dpdk-dev] [PATCH] eal: fail eal when no hugepages were found

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Jan 29 23:08:19 CET 2017


2017-01-24 21:22, Emmanuel Roullit:
> Found with clang static analysis:
> lib/librte_eal/linuxapp/eal/eal_memory.c:1004:11:
> warning: Call to 'malloc' has an allocation size of 0 bytes
> tmp_hp = malloc(nr_hugepages * sizeof(struct hugepage_file));
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> The --no-huge case, where nr_hugepages would be 0
> as well, is handled earlier.
> 
> Fixes: 5e823a451261 ("ethdev: remove some VF functions")

This commit reference seems wrong. Please check


More information about the dev mailing list