From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by dpdk.org (Postfix) with ESMTP id DB0402C8 for ; Fri, 31 Mar 2017 15:49:26 +0200 (CEST) Received: by mail-wr0-f174.google.com with SMTP id w11so106044769wrc.3 for ; Fri, 31 Mar 2017 06:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EwZcaS/YCcYaA6yhXolorziYTJ/XcjUsst4UTOe+0S0=; b=NF/AktxYjUqhWQVUogdFx2a+00/Cg0if89LWXaOkSK+vXcEnbabTPz91JLT5I7P1tp 3iD/80WLCft1ciZ0V8aqZZf/wVI1CgEPlRRjeSm4XJHKt1LsotXKd0QpJAwnwapPeole HpdcDX6CeWKz1efFv0pS0Yfkcdu4HpcM+iTrp2UDgCb1sMo/Y9YIg9UBGINZvJ/Gglxg jSXNpfN50hreRC+7fcNMrpYPjYcA/H6cPiumLtfk+/AESufvMb/G1KbCtrhNV/OaXxzc B/Afc2K6ThdKVKTWS2CchwojuSu9TaOcGu/R/W5vyQiLOSFv6H7LtWDGB649k+1TctQN ojVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EwZcaS/YCcYaA6yhXolorziYTJ/XcjUsst4UTOe+0S0=; b=dS8rPHevuXXPSzAkUICz1Yn+exqeJWNC0fKbKCZ8bvLRizziefO9ZOLt0Wu/IE7o8g 8YDwtnjPm5jk1i6zCNTVOjn4LI/2cHJqVcutFu0l1LqYtl0xP0jXBEjE8CDrwvvhIvS6 ktOs3y7RwIXxN5AZ2zy0whZV0JJ+VCTAROlt215ZhG71/nwinKYb/jO+mu2UBLEYoEOm 3NP0Pk5TT9JLABYKHCoYxUHy5IEJvFoMri1yBqV0IL6KR89yjnz54wNU6ScTr9dVCN6S dxWW3HshI185hQjlxA9ecjeVdbO8NbrbNtqPFeyuxSyYmuKjq4fPRTl7l0eYZIsbj9GK kMyw== X-Gm-Message-State: AFeK/H0MZi4sTjf1gooXyWVWugABkXs320EBGLxNzPMBKo+DJRmBzlB+oWHHnFDDvwdjsJZP X-Received: by 10.223.152.243 with SMTP id w106mr3206978wrb.151.1490968166398; Fri, 31 Mar 2017 06:49:26 -0700 (PDT) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id j2sm4311741wrd.26.2017.03.31.06.49.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Mar 2017 06:49:26 -0700 (PDT) Date: Fri, 31 Mar 2017 15:49:24 +0200 From: Olivier Matz To: Shreyansh Jain Cc: , , , Message-ID: <20170331154924.3e6e117d@platinum> In-Reply-To: <1490938537-1177-1-git-send-email-shreyansh.jain@nxp.com> References: <11490938158-936-1-git-send-email-shreyansh.jain@nxp.com> <1490938537-1177-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 31 Mar 2017 13:49:27 -0000 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