Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e43785c authored by Johannes Weiner's avatar Johannes Weiner Committed by Ingo Molnar
Browse files

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: default avatarJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 74296a8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -717,7 +717,7 @@ int request_irq(unsigned int irq, irq_handler_t handler,
	if (!handler)
	if (!handler)
		return -EINVAL;
		return -EINVAL;


	action = kmalloc(sizeof(struct irqaction), GFP_ATOMIC);
	action = kmalloc(sizeof(struct irqaction), GFP_KERNEL);
	if (!action)
	if (!action)
		return -ENOMEM;
		return -ENOMEM;