From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] librte_eal: fix wrong assert for arm and ppc Date: Fri, 06 Oct 2017 00:16:06 +0200 Message-ID: <1861830.ytJZ7dK9I5@xps> References: <20170925073441.23494-1-lma@semihalf.com> <20170928065459.6616-1-lma@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stable@dpdk.org To: Lukasz Majczak Return-path: In-Reply-To: <20170928065459.6616-1-lma@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 28/09/2017 08:54, Lukasz Majczak: > The assertion of return value from the open() function is done against > 0, while it is a correct value - open() returns -1 in case of an error. > It causes problems while trying to run as a daemon, in which case, this > call to open() will return 0 as a valid descriptor. > > Fixes: b94e5c9406b5 ("eal/arm: add CPU flags for ARMv7") > Fixes: 97523f822ba9 ("eal/arm: add CPU flags for ARMv8") > Fixes: 9ae155385686 ("eal/ppc: cpu flag checks for IBM Power") Cc: stable@dpdk.org > Signed-off-by: Lukasz Majczak > Acked-by: Jan Viktorin > Acked-by: Chao Zhu Applied, thanks