diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-10-21 19:24:27 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-22 05:59:52 -0400 |
commit | bfb85c9f753a7172bd962e8717118191dfd612cc (patch) | |
tree | 99701d12b83314bbba092e6841b28b842febdd08 /net | |
parent | 33b0c4fe6d0dd19fc7c9b801855f55c5260f2858 (diff) |
[ATM]: Fix clip module reload crash.
net/atm/clip.c crashes the kernel if it (module) is loaded, removed,
and then loaded again. Its exit call to neigh_table_clear()
should destroy the cache after freeing it.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/neighbour.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 67ba9914e52e..05979e356963 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -1438,6 +1438,9 @@ int neigh_table_clear(struct neigh_table *tbl) | |||
1438 | free_percpu(tbl->stats); | 1438 | free_percpu(tbl->stats); |
1439 | tbl->stats = NULL; | 1439 | tbl->stats = NULL; |
1440 | 1440 | ||
1441 | kmem_cache_destroy(tbl->kmem_cachep); | ||
1442 | tbl->kmem_cachep = NULL; | ||
1443 | |||
1441 | return 0; | 1444 | return 0; |
1442 | } | 1445 | } |
1443 | 1446 | ||