diff options
author | Vlad Yasevich <vyasevich@gmail.com> | 2013-11-16 15:17:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-18 15:38:46 -0500 |
commit | eca42aaf898c31db1fd04850fb4dc584c9184c49 (patch) | |
tree | 949d1b55b85eb493b828101684386b316a70fb1e /net | |
parent | 029b234fb34d53e11cadd8c1f530107f557e1aca (diff) |
ipv6: Fix inet6_init() cleanup order
Commit 6d0bfe22611602f36617bc7aa2ffa1bbb2f54c67
net: ipv6: Add IPv6 support to the ping socket
introduced a change in the cleanup logic of inet6_init and
has a bug in that ipv6_packet_cleanup() may not be called.
Fix the cleanup ordering.
CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
CC: Lorenzo Colitti <lorenzo@google.com>
CC: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/af_inet6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 6468bda1f2b9..56ca35b30dda 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -958,10 +958,10 @@ out: | |||
958 | 958 | ||
959 | #ifdef CONFIG_SYSCTL | 959 | #ifdef CONFIG_SYSCTL |
960 | sysctl_fail: | 960 | sysctl_fail: |
961 | ipv6_packet_cleanup(); | 961 | pingv6_exit(); |
962 | #endif | 962 | #endif |
963 | pingv6_fail: | 963 | pingv6_fail: |
964 | pingv6_exit(); | 964 | ipv6_packet_cleanup(); |
965 | ipv6_packet_fail: | 965 | ipv6_packet_fail: |
966 | tcpv6_exit(); | 966 | tcpv6_exit(); |
967 | tcpv6_fail: | 967 | tcpv6_fail: |