Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bfb85c9f753a7172bd962e8717118191dfd612cc Commit: bfb85c9f753a7172bd962e8717118191dfd612cc Parent: 33b0c4fe6d0dd19fc7c9b801855f55c5260f2858 Author: Randy Dunlap <[EMAIL PROTECTED]> AuthorDate: Sun Oct 21 16:24:27 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Mon Oct 22 02:59:52 2007 -0700
[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 <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- 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 67ba991..05979e3 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1438,6 +1438,9 @@ int neigh_table_clear(struct neigh_table *tbl) free_percpu(tbl->stats); tbl->stats = NULL; + kmem_cache_destroy(tbl->kmem_cachep); + tbl->kmem_cachep = NULL; + return 0; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html