From: Gavin Shan Date: Wed, 26 Sep 2012 01:33:19 +0000 (+1000) Subject: mm/mmu_notifier: init notifier if necessary X-Git-Tag: next-20120927~1^2~324 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2e2bfc0f090b987cc174dafdf816b8d63b1fa487;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;