Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp935046ybp; Thu, 17 Oct 2019 05:51:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPL8/t6nKaDroU3THlD52MZsm7X95PzLOWsabWgiXmq56y+evpSBxXSG7sqJzPbao69C1F X-Received: by 2002:aa7:d6cd:: with SMTP id x13mr3560753edr.272.1571316673479; Thu, 17 Oct 2019 05:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571316673; cv=none; d=google.com; s=arc-20160816; b=QseabbJF8AO9bCRXaqCg1n2qcL6Na2DJm/4S+L1hGvBwG84E+EKr/sRc1uSOljSIzR XgHi96i+qMczFXJAgwnUBBE/GuY+NPO9FcfzyqEuWuNark3lgP5AL2vWUowHqOwrrNoy /uUB+Xk4mbRsFhL+REcJ3xAU/m0A2lDMbR66bgC5I25/rXQF/bVjIlpshinRyC9wpQlO KWUNcVfqn/zlZeqn64B9PTfmS0NNIyjHBtA0h2IYGbxTfnbvVwIXJpR+j3iIL3M6g8Lj h99SO6+4hg4glTvFbX9NhkMhReH+hSc2q8ZcJPk2TW39iktmbOGFoEOFAAFZYAO3Sybe /Y/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tJ8JkwAT5Ss8NdXwOdOoGoqFLmgy0vfo05K519hleOA=; b=Tn2CtyBSO1yq079izZsJlKXNm0xoF9Yn3USwZr2jEEYdWp8eHz0HWld9P8kbhbJJ7w HGgGweyYXnn6EaIBq32rY7pBZMrvzGgTs0ep1CxP+6QJwevGaLjFFv3V0JvJ0I4W+gBk xoYcxAyVSffj5FqvLzxuLDDqn9ghkc6GhsaiPJpo9ls3fa5hMiBj52pGdRWba2+i6US9 d78R7z5xa+rPZrIWuXexxwi9ccxGlNaC4VrhD2+zhSQ2/dGQp+pftwaUyoyQTA5QcxfK IFpzdr54KaywVpFWITaD7SYfJ+XloOdi56dD3sK7WqFlH+6dHSDN22u6t03J4PsjRPQj G8NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xvc9zM+u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si1296765ejw.396.2019.10.17.05.50.50; Thu, 17 Oct 2019 05:51:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xvc9zM+u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394228AbfJPSad (ORCPT + 99 others); Wed, 16 Oct 2019 14:30:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390895AbfJPSac (ORCPT ); Wed, 16 Oct 2019 14:30:32 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4EA51218DE; Wed, 16 Oct 2019 18:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571250632; bh=YUlJQf0q4MGsg0ffIebPtBuNdy0JVjUzZ2aGCptF0K4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xvc9zM+ubcObecxlfk5icYjHF6LLmgLlDLGVbaKMmFMMqOJ0Hw7/qpsiqFGtLuH57 fDKzJPozfQTkV+yFhjU5FpeH6wFe+DRmCi61olJom9W/tUTVmuWunfhxjC4PiAwW6q WnRK6/uJNmIk3Z5TVZiBi6oznIzLHMTeaIGdcPdA= Date: Wed, 16 Oct 2019 11:30:27 -0700 From: Greg KH To: Ajay Kaher , Mao Wenan Cc: davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, srivatsab@vmware.com, srivatsa@csail.mit.edu, amakhalov@vmware.com, srinidhir@vmware.com, bvikas@vmware.com, anishs@vmware.com, vsirnapalli@vmware.com, srostedt@vmware.com, Mao Wenan Subject: Re: [PATCH 4.9.y] Revert "net: sit: fix memory leak in sit_init_net()" Message-ID: <20191016183027.GC801860@kroah.com> References: <1571216634-44834-1-git-send-email-akaher@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1571216634-44834-1-git-send-email-akaher@vmware.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 02:33:54PM +0530, Ajay Kaher wrote: > This reverts commit 375d6d454a95ebacb9c6eb0b715da05a4458ffef which is > commit 07f12b26e21ab359261bf75cfcb424fdc7daeb6d upstream. > > Unnecessarily calling free_netdev() from sit_init_net(). > ipip6_dev_free() of 4.9.y called free_netdev(), so no need > to call again after ipip6_dev_free(). > > Cc: Mao Wenan > Cc: David S. Miller > Cc: Greg Kroah-Hartman > Signed-off-by: Ajay Kaher > --- > net/ipv6/sit.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c > index 47ca2a2..16eba7b 100644 > --- a/net/ipv6/sit.c > +++ b/net/ipv6/sit.c > @@ -1856,7 +1856,6 @@ static int __net_init sit_init_net(struct net *net) > > err_reg_dev: > ipip6_dev_free(sitn->fb_tunnel_dev); > - free_netdev(sitn->fb_tunnel_dev); > err_alloc_dev: > return err; > } > -- > 2.7.4 > Mao, are you ok with this change? thanks, greg k-h