]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/neighbour.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
[linux-2.6-omap-h63xx.git] / net / core / neighbour.c
index 67ba9914e52e78aadb1f0be6cde6fc0219c8c544..29b8ee4e35d6dc53f32064c1c067c7287ce80924 100644 (file)
@@ -1435,9 +1435,14 @@ int neigh_table_clear(struct neigh_table *tbl)
        kfree(tbl->phash_buckets);
        tbl->phash_buckets = NULL;
 
+       remove_proc_entry(tbl->id, init_net.proc_net_stat);
+
        free_percpu(tbl->stats);
        tbl->stats = NULL;
 
+       kmem_cache_destroy(tbl->kmem_cachep);
+       tbl->kmem_cachep = NULL;
+
        return 0;
 }