Re: [PATCH net] mpls: fix mpls_net_init memory leak

2015-08-31 Thread David Miller
From: Nikolay Aleksandrov Date: Mon, 31 Aug 2015 10:44:19 -0700 > From: Nikolay Aleksandrov > > Fix a memory leak in the mpls netns init function in case of failure. If > register_net_sysctl fails then we need to free the ctl_table. > > Fixes: 7720c01f3f59 ("mpls: Add a sysctl to control the s

[PATCH net] mpls: fix mpls_net_init memory leak

2015-08-31 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Fix a memory leak in the mpls netns init function in case of failure. If register_net_sysctl fails then we need to free the ctl_table. Fixes: 7720c01f3f59 ("mpls: Add a sysctl to control the size of the mpls label table") Signed-off-by: Nikolay Aleksandrov --- net/mp