From: Mathias Krause Date: Fri, 9 May 2014 21:43:40 +0000 (+0200) Subject: vti6: Don't unregister pernet ops twice on init errors X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~30^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd71143645a9958e437c8cf394be2c44a6acb23a;p=pandora-kernel.git 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 Signed-off-by: Steffen Klassert --- Reading git-diff-tree failed