From: Tetsuo Handa Date: Fri, 9 Oct 2009 09:39:24 +0000 (+0100) Subject: kmemleak: Use GFP_ATOMIC for early_alloc(). X-Git-Tag: v3.0~7216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1bcd6b327a0c0d5077eb158a600947aac7d124a;p=platform%2Fkernel%2Flinux-amlogic.git kmemleak: Use GFP_ATOMIC for early_alloc(). We can't use GFP_KERNEL inside rcu_read_lock(). Signed-off-by: Tetsuo Handa Signed-off-by: Catalin Marinas Signed-off-by: Linus Torvalds --- diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 4ea4510..a617518 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -833,7 +833,7 @@ static void early_alloc(struct early_log *log) */ rcu_read_lock(); object = create_object((unsigned long)log->ptr, log->size, - log->min_count, GFP_KERNEL); + log->min_count, GFP_ATOMIC); spin_lock_irqsave(&object->lock, flags); for (i = 0; i < log->trace_len; i++) object->trace[i] = log->trace[i];