From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 63FB7137C for ; Fri, 4 Nov 2016 10:47:01 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 973B828; Fri, 4 Nov 2016 02:47:00 -0700 (PDT) Received: from Overdrive.shanghai.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A2ED83F41F; Fri, 4 Nov 2016 02:46:59 -0700 (PDT) From: Jianbo Liu To: dev@dpdk.org, chaozhu@linux.vnet.ibm.com, viktorin@rehivetech.com Cc: Jianbo Liu Date: Fri, 4 Nov 2016 15:16:42 +0530 Message-Id: <1478252803-14672-1-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1478240949-13487-1-git-send-email-jianbo.liu@linaro.org> References: <1478240949-13487-1-git-send-email-jianbo.liu@linaro.org> Subject: [dpdk-dev] [PATCH v2 1/2] arch/arm: fix file descriptor leakage when getting CPU features X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 09:47:01 -0000 close the file descriptor after finish using it. Fixes: b94e5c94 (eal/arm: add CPU flags for ARMv7) Fixes: 97523f82 (eal/arm: add CPU flags for ARMv8) Signed-off-by: Jianbo Liu --- lib/librte_eal/common/arch/arm/rte_cpuflags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/arch/arm/rte_cpuflags.c b/lib/librte_eal/common/arch/arm/rte_cpuflags.c index 23240ef..79160a6 100644 --- a/lib/librte_eal/common/arch/arm/rte_cpuflags.c +++ b/lib/librte_eal/common/arch/arm/rte_cpuflags.c @@ -148,6 +148,7 @@ rte_cpu_get_features(hwcap_registers_t out) out[REG_PLATFORM] = 0x0001; } } + close(auxv_fd); } /* -- 2.4.11