mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ipv6: Fix inet6_init() cleanup order
Commit 6d0bfe2261
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]>
Signed-off-by: Vlad Yasevich <[email protected]>
Acked-by: Hannes Frederic Sowa <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
029b234fb3
commit
eca42aaf89
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue