From: Gavin Shan Date: Fri, 28 Sep 2012 00:19:14 +0000 (+1000) Subject: mm/mmu_notifier: init notifier if necessary X-Git-Tag: next-20121004~1^2~338 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=736fe941ffd57c81c5f6b76753d3826caedea2af;p=karo-tx-linux.git 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 --- 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;