malloc: fix not unlocking hotplug on fail to init
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 13 Apr 2018 15:58:39 +0000 (16:58 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 17 Apr 2018 10:36:40 +0000 (12:36 +0200)
commit079527f069e61a0ec79b7aaa7be9fb09947c6125
tree84f66e15e1f89c1b27bb63d4c0e759fb589057c2
parent48e97288982233f015185d632452ab6548c1bd2c
malloc: fix not unlocking hotplug on fail to init

We lock the hotplug during init, but do not unlock it if we couldn't
register multiprocess callbacks. Add the missing unlock.

Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug")

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