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-20121009~1^2~156 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=de2561d84e7f9cbb2692e1bf5e8c74b813351d02;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;