From: Johannes Weiner Date: Fri, 13 Feb 2009 03:38:04 +0000 (+0100) Subject: irq: use GFP_KERNEL for action allocation in request_irq() X-Git-Tag: v2.6.30-rc1~3^2~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e43785c57fee50fbc00ea0378e941efb61fa0c2;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git irq: use GFP_KERNEL for action allocation in request_irq() request_irq() calls into proc code via __setup_irq() which is not safe in an atomic context, so request_irq() can itself use the more reliable GFP_KERNEL allocation for the action descriptor. Signed-off-by: Johannes Weiner Signed-off-by: Ingo Molnar --- diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index cd0cd8d..1c50550 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -717,7 +717,7 @@ int request_irq(unsigned int irq, irq_handler_t handler, if (!handler) return -EINVAL; - action = kmalloc(sizeof(struct irqaction), GFP_ATOMIC); + action = kmalloc(sizeof(struct irqaction), GFP_KERNEL); if (!action) return -ENOMEM;