]> git.baikalelectronics.ru Git - kernel.git/commit
vti6: Don't unregister pernet ops twice on init errors
authorMathias Krause <minipli@googlemail.com>
Fri, 9 May 2014 21:43:40 +0000 (23:43 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 12 May 2014 05:43:21 +0000 (07:43 +0200)
commit549f850a87ccc3f1ea545719175720c7aac7516f
tree517be58d867af27bacb017302b3e8ccab8d1075a
parentc91b9d8c484578b1e444a42e7ed6a440a8fbe632
vti6: Don't unregister pernet ops twice on init errors

If we fail to register one of the xfrm protocol handlers we will
unregister the pernet ops twice on the error exit path. This will
probably lead to a kernel panic as the double deregistration
leads to a double kfree().

Fix this by removing one of the calls to do it only once.

Fixes: 2e06c1ee3d ("vti6: Update the ipv6 side to use its own...")
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_vti.c