]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix inet6_init() cleanup order
authorVlad Yasevich <vyasevich@gmail.com>
Sat, 16 Nov 2013 20:17:24 +0000 (15:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 20:38:46 +0000 (15:38 -0500)
commit6c70cae14e270b126ddbdfa7486a8fbf44c6fdb1
tree949d1b55b85eb493b828101684386b316a70fb1e
parentf6ea46e1b23a933a2e7424f10e27d8847647b780
ipv6: Fix inet6_init() cleanup order

Commit 6b4e34c00d7c8ed003a3564476c0fba2e0086ef3
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>
net/ipv6/af_inet6.c