Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: fa9ad96 ("vti6: Update the ipv6 side to use its own...") Signed-off-by: Mathias Krause <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information