[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141126.122737.294202168447173855.davem@davemloft.net>
Date: Wed, 26 Nov 2014 12:27:37 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: zyjzyj2000@...il.com
Cc: netdev@...r.kernel.org, Yanjun.Zhu@...driver.com,
honkiko@...il.com, opurdila@...acom.com, xemul@...nvz.org,
cwang@...pensource.com
Subject: Re: [PATCH V3 1/1] ipv6: Remove unnecessary test
From: Zhu Yanjun <zyjzyj2000@...il.com>
Date: Wed, 26 Nov 2014 10:25:58 +0800
> The "init_net" test in function addrconf_exit_net is introduced
> in commit 44a6bd29 [Create ipv6 devconf-s for namespaces] to avoid freeing
> init_net. In commit c900a800 [ipv6: fix bad free of addrconf_init_net],
> function addrconf_init_net will allocate memory for every net regardless of
> init_net. In this case, it is unnecessary to make "init_net" test.
>
> CC: Hong Zhiguo <honkiko@...il.com>
> CC: Octavian Purdila <opurdila@...acom.com>
> CC: Pavel Emelyanov <xemul@...nvz.org>
> CC: Cong Wang <cwang@...pensource.com>
> Suggested-by: David S. Miller <davem@...emloft.net>
> Signed-off-by: Zhu Yanjun <Yanjun.Zhu@...driver.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists