diff options
-rw-r--r-- | arch/powerpc/kernel/irq.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index ac4d29119f3e..6cb3fcd7fc37 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -893,10 +893,13 @@ unsigned int irq_radix_revmap_lookup(struct irq_host *host, | |||
893 | return irq_find_mapping(host, hwirq); | 893 | return irq_find_mapping(host, hwirq); |
894 | 894 | ||
895 | /* | 895 | /* |
896 | * No rcu_read_lock(ing) needed, the ptr returned can't go under us | 896 | * The ptr returned references the static global irq_map. |
897 | * as it's referencing an entry in the static irq_map table. | 897 | * but freeing an irq can delete nodes along the path to |
898 | * do the lookup via call_rcu. | ||
898 | */ | 899 | */ |
900 | rcu_read_lock(); | ||
899 | ptr = radix_tree_lookup(&host->revmap_data.tree, hwirq); | 901 | ptr = radix_tree_lookup(&host->revmap_data.tree, hwirq); |
902 | rcu_read_unlock(); | ||
900 | 903 | ||
901 | /* | 904 | /* |
902 | * If found in radix tree, then fine. | 905 | * If found in radix tree, then fine. |