]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/net_namespace.c
netns: Don't receive new packets in a dead network namespace.
[linux-2.6-omap-h63xx.git] / net / core / net_namespace.c
index 72b4c184dd84a4d583a20ef0ed5dbd06618f5757..7c52fe277b62441966f758b25fad9acef18a10d0 100644 (file)
@@ -140,6 +140,9 @@ static void cleanup_net(struct work_struct *work)
        struct pernet_operations *ops;
        struct net *net;
 
+       /* Be very certain incoming network packets will not find us */
+       rcu_barrier();
+
        net = container_of(work, struct net, work);
 
        mutex_lock(&net_mutex);