projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d05c80
)
genirq: show_interrupts: Check desc->name before printing it blindly
author
Thomas Gleixner
<tglx@linutronix.de>
Thu, 17 Mar 2011 12:36:57 +0000
(13:36 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 17 Mar 2011 14:52:19 +0000
(15:52 +0100)
desc->name is not required and not used by all architectures.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/proc.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/irq/proc.c
b/kernel/irq/proc.c
index 4cc2e5ed0bec2e1228f741af005d581808a6c13a..760248de109d8e9d9ec163bbd251684c9b00a054 100644
(file)
--- a/
kernel/irq/proc.c
+++ b/
kernel/irq/proc.c
@@
-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);