From patchwork Tue Jul 14 13:35:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 495086 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0BB27140773 for ; Tue, 14 Jul 2015 23:36:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=yandex-team.ru header.i=@yandex-team.ru header.b=X8fqUsM+; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926AbbGNNf5 (ORCPT ); Tue, 14 Jul 2015 09:35:57 -0400 Received: from forward-corp1m.cmail.yandex.net ([5.255.216.100]:34842 "EHLO forward-corp1m.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbbGNNf4 (ORCPT ); Tue, 14 Jul 2015 09:35:56 -0400 Received: from smtpcorp4.mail.yandex.net (smtpcorp4.mail.yandex.net [95.108.252.2]) by forward-corp1m.cmail.yandex.net (Yandex) with ESMTP id 6E72660DB6; Tue, 14 Jul 2015 16:35:52 +0300 (MSK) Received: from smtpcorp4.mail.yandex.net (localhost [127.0.0.1]) by smtpcorp4.mail.yandex.net (Yandex) with ESMTP id 1D1452C031F; Tue, 14 Jul 2015 16:35:52 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:408:55be:d924:24e7:8b42]) by smtpcorp4.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TJAf6oiuKs-ZqsGdk7O; Tue, 14 Jul 2015 16:35:52 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1436880952; bh=ftOE5E3sfqNGIZevvyX3BiPhvdo+ENqe66LP87wOku4=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X8fqUsM+Dnfgl9i0DsuI8BWlaQJWVewdlm2QojPr4xmN890AjM1mjy9rHUEHX8LUy QQ8qiV02pPxhMRSOrUvBUpS1VIYuqkmtMxU3EixUGZYyRRUDTxQt3zQwJkpJF8B/T+ Vp5fWNxZGJodbXcKLGIzVFkwE9irtfRime8+d9MI= Authentication-Results: smtpcorp4.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: [PATCH v3 2/5] ipvlan: plug memory leak in ipvlan_link_delete From: Konstantin Khlebnikov To: linux-netdev , Mahesh Bandewar Cc: "David S. Miller" , Jiri Benc Date: Tue, 14 Jul 2015 16:35:51 +0300 Message-ID: <20150714133551.22448.48397.stgit@buzz> In-Reply-To: <20150714132941.22448.42175.stgit@buzz> References: <20150714132941.22448.42175.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add missing kfree_rcu(addr, rcu); Signed-off-by: Konstantin Khlebnikov --- drivers/net/ipvlan/ipvlan_main.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index 048ecf0c76fb..7d81e37c3f76 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -507,6 +507,7 @@ static void ipvlan_link_delete(struct net_device *dev, struct list_head *head) list_for_each_entry_safe(addr, next, &ipvlan->addrs, anode) { ipvlan_ht_addr_del(addr, !dev->dismantle); list_del(&addr->anode); + kfree_rcu(addr, rcu); } list_del_rcu(&ipvlan->pnode);