mmu_notifier_release: remove mmu_notifier struct from list before calling ->release Signed-off-by: Christoph Lameter --- mm/mmu_notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/mm/mmu_notifier.c =================================================================== --- linux-2.6.orig/mm/mmu_notifier.c 2008-01-28 17:17:05.000000000 -0800 +++ linux-2.6/mm/mmu_notifier.c 2008-01-28 17:17:10.000000000 -0800 @@ -21,9 +21,9 @@ void mmu_notifier_release(struct mm_stru rcu_read_lock(); hlist_for_each_entry_safe_rcu(mn, n, t, &mm->mmu_notifier.head, hlist) { + hlist_del_rcu(&mn->hlist); if (mn->ops->release) mn->ops->release(mn, mm); - hlist_del_rcu(&mn->hlist); } rcu_read_unlock(); synchronize_rcu();