From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3419A0546; Sat, 1 May 2021 14:39:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F81B4014F; Sat, 1 May 2021 14:39:07 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id EC1D84013F for ; Sat, 1 May 2021 14:39:05 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id gc22-20020a17090b3116b02901558435aec1so736643pjb.4 for ; Sat, 01 May 2021 05:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IcP/ppNdlMPJz9Sd+M3dgDIEoozfMCMp+IQ9Fh/6gZ4=; b=V7TZfrSqLjJjEpF9azKmuuLjCJGqwNge+W6Glh7HW+/YFm/rwNVhNMTbhRZWCDBPNX g4T60hp8NDpngfpm5GLzDysb6sdr58Pd/GWhs0T/O159Z86tcvnH1chQuYSk/kvqN3ps hK4RMwP1lSQDqC5yt7q9fCYpdDYp2YIwNiX8inEHkXFadEcDAqzz1rid9zdu7qos7HAH 0RQ+bHqU0wrveeOnPIAFoFjDudYK6APPZ4uAKRAiRV0KsoTQB2T009BXsCCej+hBathy Fr5GwEtdGWLgQBh2UDj9uAMnByRkaxOd6ZRtHX+aquptobOuKEm11KOCDk48zTUabtq9 zVuQ== 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=IcP/ppNdlMPJz9Sd+M3dgDIEoozfMCMp+IQ9Fh/6gZ4=; b=Z2VG0A2rWe74Fvs7fd8JWsM8iJe1e6ueKUcqWlEMtBsRxV3wr4FPfCquqYIb4jx9Y0 PsrWe3YDxaKS85G6u6sFe3bmwsPxO/efRgrZSbvzTXJUv1Rh4N1udeiRMjVtEHDmaTcO S8x7DAo0xCAkrTfwUmvbJLeXcqv76GAGiJUObVLYSLC07eWoxhVT2piO0Us6W47mdnpd vCtjn/hT4wer0HceMf/xvdE/mmCVRaMCs42VwUno7lYm8yQ8HgevlbrB1KJmO15oM5s7 IDFNNu4DQhmPLYXXpqygqLOgMo3s7jV9urAWgh7DPCCSbHM8M8yJT82DsnEeFwudFzvs WmTQ== X-Gm-Message-State: AOAM532so4kv/BzZkAtmVbq0VPxVlhzqfU6fZbb+kf+XFo/1X1IQrZ4x TEN/IEXATytmZXh3usHNNO02M2IHZRYpa36ziyg= X-Google-Smtp-Source: ABdhPJziAelEGBc8vLtLnDEXsYY58VCCWbmsvxLYfJEBP6AjsBiPCWqiP/m4zvBvO/OcdQs3+jCTiVblk+yYOoRLfhY= X-Received: by 2002:a17:902:bd0c:b029:ed:7018:4daf with SMTP id p12-20020a170902bd0cb02900ed70184dafmr10359955pls.67.1619872745165; Sat, 01 May 2021 05:39:05 -0700 (PDT) MIME-Version: 1.0 References: <1619775278-25857-1-git-send-email-humin29@huawei.com> <1619775278-25857-3-git-send-email-humin29@huawei.com> In-Reply-To: <1619775278-25857-3-git-send-email-humin29@huawei.com> From: Jerin Jacob Date: Sat, 1 May 2021 18:08:49 +0530 Message-ID: To: "Min Hu (Connor)" , "Jayatheerthan, Jay" Cc: dpdk-dev , Ferruh Yigit , Jerin Jacob Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 2/2] eventdev: fix memory leakage when create thread fail X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Apr 30, 2021 at 3:04 PM Min Hu (Connor) wrote: > > From: Chengwen Feng > > This patch fixes the issue that epoll_events memory is not released > after the intr thread created fail. > > Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng > Signed-off-by: Min Hu (Connor) Reviewed-by: Jerin Jacob > --- > lib/eventdev/rte_event_eth_rx_adapter.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c > index d317e89..13dfb28 100644 > --- a/lib/eventdev/rte_event_eth_rx_adapter.c > +++ b/lib/eventdev/rte_event_eth_rx_adapter.c > @@ -1436,6 +1436,7 @@ rxa_create_intr_thread(struct rte_event_eth_rx_adapter *rx_adapter) > return 0; > > RTE_EDEV_LOG_ERR("Failed to create interrupt thread err = %d\n", err); > + rte_free(rx_adapter->epoll_events); > error: > rte_ring_free(rx_adapter->intr_ring); > rx_adapter->intr_ring = NULL; > -- > 2.7.4 >