]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix missing in6_ifa_put in addrconf
authorJohn Fastabend <john.r.fastabend@intel.com>
Mon, 15 Nov 2010 20:29:21 +0000 (20:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2010 15:37:36 +0000 (07:37 -0800)
commit278ec1dd46f27555cb51ef07132d44f8e651d1f8
tree6e2fef13c006956efb6f592356d1c06874baf34c
parent0dec6ed1cc746c349b904ccad87615a36f6022a9
ipv6: fix missing in6_ifa_put in addrconf

Fix ref count bug introduced by

commit f825dc4edc7a4b9eadf76854d6615be943dae40e
Author: Lorenzo Colitti <lorenzo@google.com>
Date:   Wed Oct 27 18:16:49 2010 +0000

ipv6: addrconf: don't remove address state on ifdown if the address
is being kept

Fix logic so that addrconf_ifdown() decrements the inet6_ifaddr
refcnt correctly with in6_ifa_put().

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c