From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 176C7187 for ; Mon, 30 Apr 2018 16:42:42 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id x12so11660497wmc.0 for ; Mon, 30 Apr 2018 07:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SjuNJGRp8QvH3+IL4Y5rwMzGVhQQS2k+FpviaY37W/8=; b=WlXxnxdMd7mjXrRnyX2yUkX22Hy2XXA89M3vpBaEVnYZJ108hFOqOThyl1PZe3Xv05 tFnUNY4oKJswvwTZX/nuqtQMrV2LOdF9NvqeC44CPNceaxMC2xNlJlx1K3HdFbqZp7Fr Bxvza8xJplqAahimq3Yjd8HBeRTM6gfTIfJNb//jTLoOSLWGYR3VkBMYZ5M9ZwZ7INt2 kTbh2Nr4UZcwiQHiz/1ALWJGUhZj2FU/xBJ/wLxtSZSeoY4SQyCJgfbx5bT8/2eKwiHj Y4BVP30mB0CKweaxqZmnOap/jWeL+URckDOYPLfb6ub5zhLnM24kmwijOZ6YZFjbUQBA nCJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SjuNJGRp8QvH3+IL4Y5rwMzGVhQQS2k+FpviaY37W/8=; b=VAhCfjfyR6kx2K7I9wVxqRV1gRF3h3zdnUa7O9CxKNQEF/4qi34p48ThbQWHRnd4Ny wCBuwdbiP/ptezMVbo+XUdh1an3pB4/4sWhzTBQAo6o/YZjNXMgQgKfTfAn7w7PahK/I X5UIvbTPjzthr9ViCCNMZI8A7KnL4sTY4DekJuze8diCkbP9Q38QDrdLc8qziv3Qk85/ y5A89Pv++mY5lgTaDP4C50N6Wq0ZMIMwLIonThYhZ3i3B4XGcU0CA/j5E/akOEY9HtBq en0QiRpC3o47j2uucsuFWtvIhjZkcG52R08m2Zbew0Jo/W8UpHx5Turv7WZmq5ZbT2IG VFjQ== X-Gm-Message-State: ALQs6tBVsjiIoMaVoZIR8zJSASBHcEjEgbBg19ZWtD2eu6qVsUNAR5so MOVeFi32PhgxWuSCMgkOAig= X-Google-Smtp-Source: AB8JxZo5Jz8PJYmWzAlWHMyGioSaDD0uLd/RfNUqMiKHtEN6qKtfoUzRFkq943HvUY08j7sroH0UOA== X-Received: by 10.28.136.4 with SMTP id k4mr8021807wmd.133.1525099361546; Mon, 30 Apr 2018 07:42:41 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id a10-v6sm9820222wri.10.2018.04.30.07.42.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:42:40 -0700 (PDT) From: luca.boccassi@gmail.com To: Gaetan Rivet Cc: Shreyansh Jain , dpdk stable Date: Mon, 30 Apr 2018 15:40:25 +0100 Message-Id: <20180430144223.18657-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'bus/fslmc: fix find device start condition' has been queued to stable release 18.02.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: Mon, 30 Apr 2018 14:42:42 -0000 Hi, FYI, your patch has been queued to stable release 18.02.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 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 55a19abb371f93be67ef7995eada545fff8e8331 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 5ee0beb85..010dd474e 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -301,8 +301,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.14.2