memzone: fix unlock on initialization failure
authorGao Feng <davidfgao@tencent.com>
Fri, 7 Dec 2018 01:20:08 +0000 (09:20 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 11:24:14 +0000 (12:24 +0100)
commitcc8035322384b2454b596ee7e557cae3250f20f1
tree892feee4c3c124b7ca04ae089b759fa672bf682f
parent9cea8774cf1c466cdd6dc8bade4350cc28161905
memzone: fix unlock on initialization failure

The RTE_PROC_PRIMARY error handler lost the unlock statement in the
current codes. Now unlock and return in one place to fix it.

Fixes: 49df3db84883 ("memzone: replace memzone array with fbarray")
Cc: stable@dpdk.org
Signed-off-by: Gao Feng <davidfgao@tencent.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_memzone.c