]> git.neil.brown.name Git - history.git/commit
[IPV6]: Fix dangling multicast device references.
authorDavid S. Miller <davem@nuts.ninka.net>
Thu, 21 Aug 2003 07:50:53 +0000 (00:50 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 21 Aug 2003 07:50:53 +0000 (00:50 -0700)
commitd7e6c32eb1d2f1229a93252fb4a459ba14b0a56f
treec22c7b6e7cea152cbc4206fb4f5c4b8035a0b1f5
parent3aa4ac184af468ac44a431ca61526734b34949b6
[IPV6]: Fix dangling multicast device references.

When addrconf_ifdown() calls ipv6_mc_destroy_dev(), it has NULL'd
out dev->ip6_ptr, which means all in6_dev_get() calls will fail.
So pass an explicit idev into ipv6_dev_mc_dec() in this case so
that we don't leak the all-nodes multicast address reference to the
idev.
net/ipv6/mcast.c