diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-05-09 21:43:40 (GMT) |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-05-12 05:43:21 (GMT) |
commit | fd71143645a9958e437c8cf394be2c44a6acb23a (patch) | |
tree | 517be58d867af27bacb017302b3e8ccab8d1075a /net/sctp | |
parent | edb666f07e539d92f63284213d72083ed8ac05ea (diff) | |
download | linux-fd71143645a9958e437c8cf394be2c44a6acb23a.tar.xz |
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: fa9ad96d49 ("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>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions