Re: [PATCH net-next] net: fix percpu memory leaks

2015-11-02 Thread David Miller
From: Eric Dumazet Date: Mon, 02 Nov 2015 09:03:11 -0800 > From: Eric Dumazet > > This patch fixes following problems : > > 1) percpu_counter_init() can return an error, therefore > init_frag_mem_limit() must propagate this error so that > inet_frags_init_net() can do the same up to its ca

Re: [PATCH net-next] net: fix percpu memory leaks

2015-11-02 Thread Hannes Frederic Sowa
On Mon, Nov 2, 2015, at 18:03, Eric Dumazet wrote: > From: Eric Dumazet > > This patch fixes following problems : > > 1) percpu_counter_init() can return an error, therefore > init_frag_mem_limit() must propagate this error so that > inet_frags_init_net() can do the same up to its callers. >

[PATCH net-next] net: fix percpu memory leaks

2015-11-02 Thread Eric Dumazet
From: Eric Dumazet This patch fixes following problems : 1) percpu_counter_init() can return an error, therefore init_frag_mem_limit() must propagate this error so that inet_frags_init_net() can do the same up to its callers. 2) If ip[46]_frags_ns_ctl_register() fail, we must unwind prop