提交 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,7 +405,8 @@ 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);
seq_printf(p, "-%-8s", desc->name);
if (desc->name)
seq_printf(p, "-%-8s", desc->name);
if (action) {
seq_printf(p, " %s", action->name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册