packet: call fanout_release, while UNREGISTERING a netdev
[pandora-kernel.git] / net / packet / af_packet.c
index 146b2d7..a6e5e5e 100644 (file)
@@ -3350,6 +3350,7 @@ static int packet_notifier(struct notifier_block *this, unsigned long msg, void
                                                sk->sk_error_report(sk);
                                }
                                if (msg == NETDEV_UNREGISTER) {
+                                       fanout_release(sk);
                                        po->ifindex = -1;
                                        if (po->prot_hook.dev)
                                                dev_put(po->prot_hook.dev);