Commit 30f2ba38011247ad95bffbf0743a0dc0656a5eb7

Authored by Paul Mundt
1 parent 27f1acccd4

sh: intc: Initialize radix tree gfp mask explicitly.

Presently the root node is initialized by way of kzalloc on the parent
data structure, which by chance happens to do the bulk of what an
explicit initialization does with GFP_NOWAIT semantics. This however is
more by luck than by design, and as we ideally want to permit radix node
allocations access to the emergency pools anyways, add in the proper
initializer with the desired mask.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/sh/intc/core.c
... ... @@ -198,6 +198,7 @@
198 198 list_add_tail(&d->list, &intc_list);
199 199  
200 200 raw_spin_lock_init(&d->lock);
  201 + INIT_RADIX_TREE(&d->tree, GFP_ATOMIC);
201 202  
202 203 d->index = nr_intc_controllers;
203 204