packet: call fanout_release, while UNREGISTERING a netdev
[cascardo/linux.git] / net / packet / af_packet.c
index 33a4697..11db0d6 100644 (file)
@@ -3952,6 +3952,7 @@ static int packet_notifier(struct notifier_block *this,
                                }
                                if (msg == NETDEV_UNREGISTER) {
                                        packet_cached_dev_reset(po);
+                                       fanout_release(sk);
                                        po->ifindex = -1;
                                        if (po->prot_hook.dev)
                                                dev_put(po->prot_hook.dev);