memzone: fix race condition on alloc failure
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 3 May 2018 08:59:28 +0000 (09:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 23:37:47 +0000 (01:37 +0200)
commit3ff39e25e62afc9ca12c9e351ca1f19eef9cb509
tree40e4d49e0bde624cddabdb207d6ebc3761fb9c9a
parent68c360386712df2d729858d2dde16ddb2fd90aac
memzone: fix race condition on alloc failure

Deallocation used the wrong function, which could have resulted in
race conditions because the function does not use locks internally.

Fixes: 1403f87d4fb8 ("malloc: enable memory hotplug support")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/eal_common_memzone.c