]> Pileus Git - ~andy/linux/blobdiff - net/core/neighbour.c
[NEIGH]: neigh_table_clear() doesn't free stats
[~andy/linux] / net / core / neighbour.c
index 5130d2efdbbeaed9ce896782fe7f867ab03d6d90..fe2113f54e2b644a2b5685a34f154daadf437802 100644 (file)
@@ -1432,6 +1432,9 @@ int neigh_table_clear(struct neigh_table *tbl)
        kfree(tbl->phash_buckets);
        tbl->phash_buckets = NULL;
 
+       free_percpu(tbl->stats);
+       tbl->stats = NULL;
+
        return 0;
 }