From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-177180.vip.163.com (mail-177180.vip.163.com [123.58.177.180]) by dpdk.org (Postfix) with ESMTP id E1C915F11 for ; Thu, 6 Dec 2018 01:47:46 +0100 (CET) Received: from localhost.localdomain (unknown [116.196.72.250]) by smtp1 (Coremail) with SMTP id oGZ4CgAXH7ekcQhcE5HJAw--.5007S2; Thu, 06 Dec 2018 08:47:44 +0800 (CST) From: gfree.wind@vip.163.com To: dev@dpdk.org Cc: Gao Feng Date: Thu, 6 Dec 2018 08:47:31 +0800 Message-Id: <1544057251-17351-1-git-send-email-gfree.wind@vip.163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: oGZ4CgAXH7ekcQhcE5HJAw--.5007S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GF18Jw4kZF1Dur15JF48tFb_yoWfAFX_Za 4xAF9rAF4DGwn3J3W0krsIqr1xuay8A3W7WF4xKw43G340grs09r9FvF1rWF95Xr1Ykay7 WrW3JF9rJryUJjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8w0ePUUUUU== X-Originating-IP: [116.196.72.250] X-CM-SenderInfo: 5jiuvvgozl0vg6yl1hqrwthudrp/1tbiHRAVs1Qj31FeYQAAst Subject: [dpdk-dev] [PATCH] eal: fix unlock in rte_eal_memzone_init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 00:47:48 -0000 From: Gao Feng The RTE_PROC_PRIMARY error handler lost the unlock statement in the current codes. Now fix it. Signed-off-by: Gao Feng --- lib/librte_eal/common/eal_common_memzone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c index b7081af..649cad4 100644 --- a/lib/librte_eal/common/eal_common_memzone.c +++ b/lib/librte_eal/common/eal_common_memzone.c @@ -375,6 +375,7 @@ rte_fbarray_init(&mcfg->memzones, "memzone", RTE_MAX_MEMZONE, sizeof(struct rte_memzone))) { RTE_LOG(ERR, EAL, "Cannot allocate memzone list\n"); + rte_rwlock_write_unlock(&mcfg->mlock); return -1; } else if (rte_eal_process_type() == RTE_PROC_SECONDARY && rte_fbarray_attach(&mcfg->memzones)) { -- 1.8.3.1