mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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 <hannes@cmpxchg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
74296a8ed6
commit
0e43785c57
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue