From: Ajay Kaher <akaher@vmware•com>
To: <gregkh@linuxfoundation•org>
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>,
<akaher@vmware•com>, "Mao Wenan" <maowenan@huawei•com>
Subject: [PATCH 4.9.y] Revert "net: sit: fix memory leak in sit_init_net()"
Date: Wed, 16 Oct 2019 14:33:54 +0530 [thread overview]
Message-ID: <1571216634-44834-1-git-send-email-akaher@vmware.com> (raw)
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 <maowenan@huawei•com>
Cc: David S. Miller <davem@davemloft•net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation•org>
Signed-off-by: Ajay Kaher <akaher@vmware•com>
---
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
next reply other threads:[~2019-10-16 9:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 9:03 Ajay Kaher [this message]
2019-10-16 18:30 ` [PATCH 4.9.y] Revert "net: sit: fix memory leak in sit_init_net()" Greg KH
2019-10-18 1:48 ` maowenan
2019-10-27 20:05 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1571216634-44834-1-git-send-email-akaher@vmware.com \
--to=akaher@vmware$(echo .)com \
--cc=amakhalov@vmware$(echo .)com \
--cc=anishs@vmware$(echo .)com \
--cc=bvikas@vmware$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=jmorris@namei$(echo .)org \
--cc=kaber@trash$(echo .)net \
--cc=kuznet@ms2$(echo .)inr.ac.ru \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=maowenan@huawei$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=srinidhir@vmware$(echo .)com \
--cc=srivatsa@csail$(echo .)mit.edu \
--cc=srivatsab@vmware$(echo .)com \
--cc=srostedt@vmware$(echo .)com \
--cc=stable@vger$(echo .)kernel.org \
--cc=vsirnapalli@vmware$(echo .)com \
--cc=yoshfuji@linux-ipv6$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox