malloc: fix invalid argument handling
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 5 Nov 2018 17:26:56 +0000 (17:26 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Nov 2018 00:13:58 +0000 (01:13 +0100)
commit1ccfeb7df780d7d74605ac2e16cab8aef163481d
tree9a5b8623e1cf70b883db146a512634c0522f9293
parent7415ad0cdc20b732846d9ae3dabed343781499e3
malloc: fix invalid argument handling

When adding memory to an external heap, do not go to unlock failure
handler because the memory hotplug lock hasn't been taken out yet.

Fixes: 7d75c31014f7 ("malloc: allow adding memory to named heaps")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/rte_malloc.c