From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 3A41B187 for ; Sun, 22 Apr 2018 17:11:45 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 98E5D212A0; Sun, 22 Apr 2018 11:11:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 22 Apr 2018 11:11:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=o5ZKdFOWcNpSsLvsg BN8bBBOwnyBp9S1NUpkY5NI9To=; b=l81EzblKIVrX52O2QcnRpMA0yzeiGbSrR qSZk+zB2R3lISaAK2IY6OpzEwWMqgOyK3Oa2/6vqDT74OsvVJfl1nJyW/QENOVb2 s8f3rcYQlRZ5u1cAjq7oOaQaENSnAZbt9MfzbX6Ht7WFqaa1+AbgMWmTifVEWZTH JZli7ZZFFNSSzkDWoSqL+zJOM82H+yF6dtuBIBIaoqwkcbWdLFuWG83iSOO1j6GB hNNchxh5Ec0izDV0/iaJjcdM3W5dHci9Ems7TRdK75GaFilTrGR1uyB8rZomT9TO lRKQjS6zSgB8eRzrs314Gf4ymJiuy/sxvKNmZBVcjpJ3wHEOJxW8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=o5ZKdFOWcNpSsLvsgBN8bBBOwnyBp9S1NUpkY5NI9To=; b=QQPhMjyE fR0EjLvCozDqXZf3kbXGU9z8kG9IiNQ6I+NJ0L1DZw/PI3SurAQmtbqe77rh1Oa1 SeMQEk6iPPecn8VRJyfqvKjgIUEUhKixmcA6SThdNwJdqwuGJcdEVDNOKOn3jHA9 BHHlVGi1p7GJK8AqO+PECiw1mdtNHYqGDdTTyKRiVpdFrnX9UCLFg417hNi7QIht p5jdjIM+9Ah/eCtOEdyc7apj+IP3q1TsyPERr2RIMvhQq4NvIRY7FYy4HtM32dDX h80JjMzi1dhBpYd3BR2C51quc5vKd0TAxjaJJrmYFCjcB4CKGX33BxKHia3PlWz7 1mchNOrLiC6FZQ== X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.66]) by mail.messagingengine.com (Postfix) with ESMTPA id A574710264; Sun, 22 Apr 2018 11:11:43 -0400 (EDT) From: Yuanhan Liu To: Gaetan Rivet Cc: Shreyansh Jain , dpdk stable Date: Sun, 22 Apr 2018 23:09:28 +0800 Message-Id: <20180422150949.17523-38-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180422150949.17523-1-yliu@fridaylinux.org> References: <20180422150949.17523-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'bus/fslmc: fix find device start condition' has been queued to LTS release 17.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2018 15:11:46 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/29/18. So please shout if anyone has objections. Thanks. --yliu --- >>From a213371548bc6bec83afb0a1a18d8402527657a6 Mon Sep 17 00:00:00 2001 From: Gaetan Rivet Date: Thu, 22 Mar 2018 11:28:44 +0100 Subject: [PATCH] bus/fslmc: fix find device start condition [ upstream commit 78f5a2e93d746110d1da1a81a62cf6149c52e6ef ] If start is set and a device before it matches the data, this device is returned. Fixes: c7fe1eea8a74 ("bus: simplify finding starting point") Signed-off-by: Gaetan Rivet Acked-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_bus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 480857e57..001e56ca1 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -310,8 +310,9 @@ rte_fslmc_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, struct rte_dpaa2_device *dev; TAILQ_FOREACH(dev, &rte_fslmc_bus.device_list, next) { - if (start && &dev->device == start) { - start = NULL; /* starting point found */ + if (start != NULL) { + if (&dev->device == start) + start = NULL; /* starting point found */ continue; } -- 2.11.0