From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] mempool: fix unsafe removal from list by callback Date: Mon, 25 Jul 2016 22:21:57 +0200 Message-ID: <13482188.oq4p9ccHem@xps13> References: <1469476476-2148-1-git-send-email-thomas.monjalon@6wind.com> <72f68706-51c1-693c-cb66-7824be2baeba@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Olivier Matz Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 5CC08568F for ; Mon, 25 Jul 2016 22:22:01 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id o80so172992680wme.1 for ; Mon, 25 Jul 2016 13:22:01 -0700 (PDT) In-Reply-To: <72f68706-51c1-693c-cb66-7824be2baeba@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > If a mempool is removed from the list by a callback function > > during rte_mempool_walk(), the TAILQ_FOREACH loop will fail unexpectedly. > > It is fixed by using the safe version of the loop macro. > > > > Reported-by: Sergio Gonzalez Monroy > > Signed-off-by: Thomas Monjalon > > Acked-by: Olivier Matz Applied, thanks