提交 ee0401ec 编写于 作者: T 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: NThomas Gleixner <tglx@linutronix.de>
上级 6d05c80d
......@@ -405,6 +405,7 @@ int show_interrupts(struct seq_file *p, void *v)
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
seq_printf(p, " %8s", desc->irq_data.chip->name);
if (desc->name)
seq_printf(p, "-%-8s", desc->name);
if (action) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册