Files
ack-tegra/net/ipv6
Neil Horman 2cc6d2bf3d ipv6: add a missing unregister_pernet_subsys call
Clean up a missing exit path in the ipv6 module init routines.  In
addrconf_init we call ipv6_addr_label_init which calls register_pernet_subsys
for the ipv6_addr_label_ops structure.  But if module loading fails, or if the
ipv6 module is removed, there is no corresponding unregister_pernet_subsys call,
which leaves a now-bogus address on the pernet_list, leading to oopses in
subsequent registrations.  This patch cleans up both the failed load path and
the unload path.  Tested by myself with good results.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>

 include/net/addrconf.h |    1 +
 net/ipv6/addrconf.c    |   11 ++++++++---
 net/ipv6/addrlabel.c   |    5 +++++
 3 files changed, 14 insertions(+), 3 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-09-26 19:09:25 -07:00
..
2010-09-08 21:45:01 -07:00
2010-02-22 16:20:22 -08:00
2010-06-09 18:39:27 -07:00
2010-06-07 02:57:14 -07:00
2010-02-22 16:20:22 -08:00
2010-06-25 21:33:17 -07:00
2010-05-11 14:40:55 +02:00
2010-06-10 23:31:35 -07:00
2010-06-30 13:31:19 -07:00
2009-09-14 17:03:05 -07:00
2010-06-10 23:31:35 -07:00
2010-06-10 23:31:35 -07:00
2010-06-26 22:00:03 -07:00
2010-09-08 21:45:01 -07:00
2010-01-17 19:16:02 -08:00
2010-07-04 11:46:07 -07:00