diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-17 08:36:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-17 10:52:19 -0400 |
commit | ee0401ec11bb7b83b7fa9476d0aaeabd59216062 (patch) | |
tree | a723475dc3d36994a1e43397cbe55e7fcf308a9f /kernel/irq | |
parent | 6d05c80dd2115d69599368b150c3df0cf5a54c51 (diff) |
genirq: show_interrupts: Check desc->name before printing it blindly
desc->name is not required and not used by all architectures.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 4cc2e5ed0bec..760248de109d 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c | |||
@@ -405,7 +405,8 @@ int show_interrupts(struct seq_file *p, void *v) | |||
405 | for_each_online_cpu(j) | 405 | for_each_online_cpu(j) |
406 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | 406 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); |
407 | seq_printf(p, " %8s", desc->irq_data.chip->name); | 407 | seq_printf(p, " %8s", desc->irq_data.chip->name); |
408 | seq_printf(p, "-%-8s", desc->name); | 408 | if (desc->name) |
409 | seq_printf(p, "-%-8s", desc->name); | ||
409 | 410 | ||
410 | if (action) { | 411 | if (action) { |
411 | seq_printf(p, " %s", action->name); | 412 | seq_printf(p, " %s", action->name); |