malloc: check size hint when reserving the biggest element
authorDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Sun, 7 Oct 2018 19:31:47 +0000 (21:31 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 28 Oct 2018 10:59:02 +0000 (11:59 +0100)
commitc7810c319d5f70c7d3c1b878f9431dc17dc1b6bc
treec12617d37200a6b9c0fc88c87951c05d7f3726d1
parente4f2c1421d8036a4778c43bf25201ef5fb37ad6f
malloc: check size hint when reserving the biggest element

RTE_MEMZONE_SIZE_HINT_ONLY wasn't checked in any way,
causing size hints to be parsed as hard requirements.
This resulted in some allocations being failed prematurely.

Fixes: 68b6092bd3c7 ("malloc: allow reserving biggest element")
Cc: stable@dpdk.org
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/malloc_heap.c