Skip to contentSkip to conversation

ipv6: Fix inet6_init() cleanup order

PATCH In review Vlad Yasevich 3 participants 3 messages Nov 16, 2013 – Nov 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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 <[email protected]>
CC Lorenzo Colitti <[email protected]>
CC Fabio Estevam <[email protected]>
---
 net/ipv6/af_inet6.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/af_inet6.c +2 -2
index 6468bda..56ca35b 100644
@@ -958,10 +958,10 @@ out:
 
 #ifdef CONFIG_SYSCTL
 sysctl_fail:
-	ipv6_packet_cleanup();
+	pingv6_exit();
 #endif
 pingv6_fail:
-	pingv6_exit();
+	ipv6_packet_cleanup();
 ipv6_packet_fail:
 	tcpv6_exit();
 tcpv6_fail:
Signature · 1 line
1.8.4.2
Acked-by on v2 1/1
#1 lore raw
Quoted 11 lines · Vlad Yasevich

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 <[email protected]>
CC Lorenzo Colitti <[email protected]>
CC Fabio Estevam <[email protected]>

Thanks,

Hannes

maintainer
#2 lore raw

From: Hannes Frederic Sowa <[email protected]>
Date: Sat, 16 Nov 2013 21:26:46 +0100

Quoted 8 lines · Vlad Yasevich
Quoted 7 lines

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.

Quoted 6 lines
Quoted 4 lines
CC Hannes Frederic Sowa <[email protected]>
CC Lorenzo Colitti <[email protected]>
CC Fabio Estevam <[email protected]>

Looks great, thanks for sorting this out properly.

I'll queue this up for -stable as well.

Thanks again!