From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 6B7CF1B1B4 for ; Wed, 24 Jan 2018 16:37:55 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 114D52237C; Wed, 24 Jan 2018 10:37:55 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=IN5fjeqLt57ZDCC74 f44kx5jD+JCyH+ZX731cXina+0=; b=SutXAGNSPV40MyNSdCNHW4C09IHTc1RbV 8E/swdNemWU1jCjclk8XK1UOMxZz7QwTDEOLkJxdsgsc/V/4Fph/0R25w+zbAULx 8J173/iACG8cK3peszMe8OQgyfeImav4veVkUd1g5bCGspyTo3L9r9GhZaft+MD3 /gsZxVjJDoggPXsHHFkls3B7Zkf3zliOZDwL9/zWI86ENLBy+2MyQiWS1cSamsIQ 6aTFeSWDHZf0hAh8pUuKRW27SaKYD1gs95QugX9f/QDmLoYgjIDUbBfolZO3VnVR vd22aUsc2ZhFp84TturuDISS5C8T2wycvYg5kF/wSqkT3OJsWm2hA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=IN5fjeqLt57ZDCC74f44kx5jD+JCyH+ZX731cXina+0=; b=nZbglHL6 FqROukfkS2Gq3xRANI97Ip9OsvQ2rZ/ffyggqTwPAZAN9CsrSszZo+YR1e2EAJh6 Vnv51rUuWElJJ+AU3krAFOtEPf++eDkyqwez6VJOLXtyU1AWamkHBY4GXYg3SQ+t 0M8jybQlMHfRoXbZHIGxcyh4MiEHkTQ+kHkJob/iFkUvr2bp1LshVWw2DhOTLRfK a0dIY4IBVz21Yn95GIdteWbsKLrFbZgX40eFhJRjkO9xhuHnBpKYw9CRPLhSQGh7 piM8vTzcD+VI2j9JKUX6J9fJ3yoVZqBozAr/tq/QjAvSlxWhrwjQo4eUtaLAvTwH mDXNoC+HEEOG+A== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id DAEE17E354; Wed, 24 Jan 2018 10:37:52 -0500 (EST) From: Yuanhan Liu To: Andrew Rybchenko Cc: Ivan Malov , dpdk stable Date: Wed, 24 Jan 2018 23:31:55 +0800 Message-Id: <1516808026-25523-47-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/sfc: fix multicast address list copy memory leak' has been queued to LTS release 17.11.1 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: , X-List-Received-Date: Wed, 24 Jan 2018 15:37:55 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From c74131149b360153d492dad88624805e34f63bc4 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Wed, 13 Dec 2017 07:12:17 +0000 Subject: [PATCH] net/sfc: fix multicast address list copy memory leak [ upstream commit 8ae36890ca06bf66972f88d2f44040888ac94c6e ] Fixes: 295f647a38a2 ("net/sfc: set multicast address list in started state only") Signed-off-by: Andrew Rybchenko Reviewed-by: Ivan Malov --- drivers/net/sfc/sfc_port.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/sfc/sfc_port.c b/drivers/net/sfc/sfc_port.c index 55d8d46..d71ec18 100644 --- a/drivers/net/sfc/sfc_port.c +++ b/drivers/net/sfc/sfc_port.c @@ -406,7 +406,10 @@ sfc_port_attach(struct sfc_adapter *sa) fail_kvarg_stats_update_period_ms: fail_mac_stats_dma_alloc: rte_free(port->mac_stats_buf); + fail_mac_stats_buf_alloc: + rte_free(port->mcast_addrs); + fail_mcast_addr_list_buf_alloc: sfc_log_init(sa, "failed %d", rc); return rc; @@ -422,6 +425,8 @@ sfc_port_detach(struct sfc_adapter *sa) sfc_dma_free(sa, &port->mac_stats_dma_mem); rte_free(port->mac_stats_buf); + rte_free(port->mcast_addrs); + sfc_log_init(sa, "done"); } -- 2.7.4