From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A5E1CA04DD for ; Thu, 22 Oct 2020 22:06:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76B93569B; Thu, 22 Oct 2020 22:06:47 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 487BE569B for ; Thu, 22 Oct 2020 22:06:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603397203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xU6x0qDXPLNNNAOB9lJNfT25gjfp/lVeUM3BhA0K9ao=; b=M32k5UsIIhcDA9OYsdyIFGbOGr2QWlo+V1TFn+HGLkEebG8pm2q80Nm6Nb7t1mJc/BVj3/ 26vmejMB/0iGZcGdi9qeFkj/hQb2FKwCZG8ZtNwVDFrRf/f/hVqQnMUeJEQK+EcdcU+SsG QKTgIABY1GpOL0PwPQr4EMuE2JVj8c0= Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-4cBcfVx2PH2GXqyODHN1Cg-1; Thu, 22 Oct 2020 16:06:41 -0400 X-MC-Unique: 4cBcfVx2PH2GXqyODHN1Cg-1 Received: by mail-vk1-f199.google.com with SMTP id j134so631996vke.1 for ; Thu, 22 Oct 2020 13:06:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xU6x0qDXPLNNNAOB9lJNfT25gjfp/lVeUM3BhA0K9ao=; b=MdF/smk7s8O8S3qZik/cBgmdCSXqXPoR6hoOKtlu+T/LgSxOLA0irKZSQe3EzMmdCN pqmt4szRRkefH1PgMRXJWxL3TLNcEWhW8yfDHeCMCOkc/kZdmvbC/XK6hFVZlpkeUV7O M3J62PONu/q4fjf00m+Rezo+1x7AHh+AR523IFvK18Qqn/wFpc/qf1F9vehZFzsoCE1A U9qAftmv9PTgS/5JmQOiUIN6xAf+zBwm02ImLgvDSEBvVTAu2fANdYfJqbPLX0BR5TPF 1ihxxP+RkvOkEWW+8wZM91OEok9nF8lb2LmPmR3nbejZ2trCtYM6FXNzoLXGx+ezixut XahA== X-Gm-Message-State: AOAM530nC1ARPiHo7uWnTapwzMdvO7A5qdbzvSRk5LXWS36D6i4qwZT4 Rcgu3QYUVsxP8Ac2+T5dPfCypi6MsFIhBpdQwi4b1GMz4G+DAVZGsT1XjJFmsvfxZBfCLVQZ6bY Q9ZS5dz0mDTDztMPeSN0OvLc= X-Received: by 2002:ab0:784d:: with SMTP id y13mr1829533uaq.86.1603397201432; Thu, 22 Oct 2020 13:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws6OJeUF2f21knNyZs/h/9ojSkXB+nVrJb20Lr30dkZ6uictqf7sVNMoWmg2NSWY/AQxQpvMXKPo0EJ/DcqCo= X-Received: by 2002:ab0:784d:: with SMTP id y13mr1829503uaq.86.1603397201169; Thu, 22 Oct 2020 13:06:41 -0700 (PDT) MIME-Version: 1.0 References: <49d4bdc58b81564788cfd31f16ef2e66c1673f6d.1601347917.git.wangyunjian@huawei.com> In-Reply-To: <49d4bdc58b81564788cfd31f16ef2e66c1673f6d.1601347917.git.wangyunjian@huawei.com> From: David Marchand Date: Thu, 22 Oct 2020 22:06:30 +0200 Message-ID: To: wangyunjian Cc: dev , Byron Marohn , "Wang, Yipeng1" , "Lilijun (Jerry)" , xudingke , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] efd: fix tailq entry leak in error path 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Tue, Sep 29, 2020 at 5:32 AM wangyunjian wrote: > > From: Yunjian Wang > > In rte_efd_create() allocated memory for tailq entry, we should > free it when error happens, otherwise it will lead to memory leak. > > Fixes: 56b6ef874f80 ("efd: new Elastic Flow Distributor library") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang Acked-by: Yipeng Wang Applied, thanks. -- David Marchand