Commit 6cb49a2c authored by Krishna Kumar's avatar Krishna Kumar Committed by David S. Miller

[IPV6]: Fix ref count bug in MLDv2, test idev->dead instead of IFF_UP.

parent b74230be
...@@ -664,7 +664,7 @@ static void igmp6_group_dropped(struct ifmcaddr6 *mc) ...@@ -664,7 +664,7 @@ static void igmp6_group_dropped(struct ifmcaddr6 *mc)
goto done; goto done;
spin_unlock_bh(&mc->mca_lock); spin_unlock_bh(&mc->mca_lock);
if (dev->flags&IFF_UP) if (!mc->idev->dead)
igmp6_leave_group(mc); igmp6_leave_group(mc);
spin_lock_bh(&mc->mca_lock); spin_lock_bh(&mc->mca_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment