]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix broken backport for IPv6 tunnels
authorStratos Psomadakis <psomas@gentoo.org>
Tue, 30 Aug 2011 14:48:08 +0000 (17:48 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:31:50 +0000 (12:31 -0800)
commitc5ed15616ec3dc395107c3c8c760039ae9edfec8
tree91e0ec56c9ab5a7218119bfe35771303ea11e067
parentabc7edfb03efd63cf15c98b1b5984e4dcf076edd
Fix broken backport for IPv6 tunnels

Fix broken backport for IPv6 tunnels in 2.6.32-longterm kernels.

upstream commit d5aa407f59f5b83d2c50ec88f5bf56d40f1f8978 ("tunnels: fix
netns vs proto registration ordering") , which was included in
2.6.32.44-longterm, was not backported correctly, and results in a NULL
pointer dereference in ip6_tunnel.c for longterm kernels >=2.6.32.44

Use [un]register_pernet_gen_device() instead of
[un]register_pernet_device() to fix it.

Signed-off-by: Stratos Psomadakis <psomas@gentoo.org>
Cc: Wolfgang Walter <wolfgang.walter@stwm.de>
Cc: Tim Gardner <tim.gardner@canonical.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/ip6_tunnel.c