From: Gavin Shan Date: Thu, 13 Sep 2012 00:58:36 +0000 (+1000) Subject: mm/mmu_notifier: init notifier if necessary X-Git-Tag: next-20120918~1^2~208 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=498e31992feaa185bc22ffbb09800475ff8c926e;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;