Commit ee0401ec authored by Thomas Gleixner's avatar Thomas Gleixner

genirq: show_interrupts: Check desc->name before printing it blindly

desc->name is not required and not used by all architectures.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 6d05c80d
...@@ -405,6 +405,7 @@ int show_interrupts(struct seq_file *p, void *v) ...@@ -405,6 +405,7 @@ int show_interrupts(struct seq_file *p, void *v)
for_each_online_cpu(j) for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
seq_printf(p, " %8s", desc->irq_data.chip->name); seq_printf(p, " %8s", desc->irq_data.chip->name);
if (desc->name)
seq_printf(p, "-%-8s", desc->name); seq_printf(p, "-%-8s", desc->name);
if (action) { if (action) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment