ipv6: Fix inet6_init() cleanup order
Subsystems (2)
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.
--- net/ipv6/af_inet6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/af_inet6.c +2 -2
@@ -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
Quoted 11 lines · Vlad Yasevich
Commit
6d0bfe22611602f36617bc7aa2ffa1bbb2f54c67
net: ipv6: Add IPv6 support to the ping socketintroduced a change in the cleanup logic of
inet6_initand has a bug in thatipv6_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]>Signed-off-by Vlad Yasevich <[email protected]>
Thanks,
Hannes
David Miller
maintainerFrom: 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 socketintroduced a change in the cleanup logic of
inet6_initand has a bug in thatipv6_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]>Signed-off-by Vlad Yasevich <[email protected]>
Looks great, thanks for sorting this out properly.
I'll queue this up for -stable as well.
Thanks again!