From 2e2bfc0f090b987cc174dafdf816b8d63b1fa487 Mon Sep 17 00:00:00 2001 From: Gavin Shan Date: Wed, 26 Sep 2012 11:33:19 +1000 Subject: [PATCH] mm/mmu_notifier: init notifier if necessary v2: Use GFP_KERNEL instead of GFP_ATOMIC when allocating the MMU notifier_mm as Andrew suggested. Signed-off-by: Gavin Shan Signed-off-by: Andrew Morton --- mm/mmu_notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 4bdeeb963a48..947df83dccb0 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -215,7 +215,7 @@ static int do_mmu_notifier_register(struct mmu_notifier *mn, if (!mm_has_notifiers(mm)) { mmu_notifier_mm = kmalloc(sizeof(struct mmu_notifier_mm), - GFP_ATOMIC); + GFP_KERNEL); if (unlikely(!mmu_notifier_mm)) { ret = -ENOMEM; goto out_of_mem; -- 2.39.5