From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 257BC2B9B for ; Mon, 3 Apr 2017 18:58:33 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id w43so177210842wrb.0 for ; Mon, 03 Apr 2017 09:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=L9wkmmc1br/GidGe/8fEE4n1gQ3m68m9qzRaO12o4HQ=; b=sn6tA9hSs/mUh40GJx+Y8nCQZUvhnZG27mjY5fk/5XXSg3M/qOadAvB9MzzM7bz2rn 2JpJwFYive4o6Qcpjmsby0oySmyowYZpOjPtyMeB6oM2lwH9NIEdn4VrhW3jePuTesUl R0ahOl4mpE3va2PvSIPDi7t+rlRrX0mzcTy9hVDX5Db8bAJ3ZtCuPVt7/jylDuHjyb1Q 8W8w8MH/TjoTgNzod5LiEu4zyEN0vNI+77XyVUjtWtkOlgyjBMbHPNbL8lxv+kXtzZ2J RAJ8r9utukzaD6qBBdwBm8dWAdeWyVJnBTh3zuOyyYaDyEQxyioILZVw0dzcTBiqVz06 /Eyw== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=L9wkmmc1br/GidGe/8fEE4n1gQ3m68m9qzRaO12o4HQ=; b=QEKWl2hH710QqKr+tfWvLAEfPqtLk6h6Z1feH/Kcyciv1fyR3IaQsPwMqUtCqOQxmb iss27ffYJDIg5SOvf4PCwS/UFMY5Q8T3fnN94wgeAEwyouxWdc1Qv/DxlVj0QQTf6a4Y +YZFdny5frpaBHwzNJv0p5hHyw/11B0/rTq+4I0Z0n19Y16m08vzl3ksm0QyWrV1dppG S2HUxgKggx2GR839rH6BhwXu7rddFNuUHoy9xz0I6MQyATzl8TLQDWqde3z9bro00A2s i4h/xaui8z0NzKnFizOtPWtcesut2kjMrnCllVEDYXQ2Z8SXvecWejED/k2Nz53oru68 tgDg== X-Gm-Message-State: AFeK/H1MpAgfSywJYE4XLf3UUCgDgzVNUlKLQxjUaQQf4ihr2TyS8LgpQrKqkDaQiZGPRT5D X-Received: by 10.223.172.133 with SMTP id o5mr12855710wrc.23.1491238713354; Mon, 03 Apr 2017 09:58:33 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id s27sm14177784wra.69.2017.04.03.09.58.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 09:58:32 -0700 (PDT) From: Thomas Monjalon To: Shreyansh Jain Cc: Olivier Matz , dev@dpdk.org, hemant.agrawal@nxp.com, david.hunt@intel.com Date: Mon, 03 Apr 2017 18:58:32 +0200 Message-ID: <2791910.qOPMfRUke8@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170331154924.3e6e117d@platinum> References: <11490938158-936-1-git-send-email-shreyansh.jain@nxp.com> <1490938537-1177-1-git-send-email-shreyansh.jain@nxp.com> <20170331154924.3e6e117d@platinum> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 1/3] mempool: fix segfault when shared mempool handler not linked X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 16:58:34 -0000 2017-03-31 15:49, Olivier Matz: > On Fri, 31 Mar 2017 11:05:35 +0530, Shreyansh Jain wrote: > > Fixes: 449c49b93a6b ("mempool: support handler operations") > > > > In case the stack or ring mempool handler are compiled as shared > > library and not linked in with test binary, segfault is reported. > > This is because return value of rte_mempool_set_ops_byname is not > > being checked in rte_mempool_ops_alloc. > > > > This patch handles error returned from rte_mempool_set_ops_byname > > when a mempool is not found. > > > > Signed-off-by: Shreyansh Jain > > Acked-by: Olivier Matz Series applied, thanks