projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d941cf5
)
[IA64] Add sanity check into __bind_irq_vector
author
Kenji Kaneshige
<kaneshige.kenji@jp.fujitsu.com>
Thu, 26 Jul 2007 06:30:45 +0000
(15:30 +0900)
committer
Tony Luck
<tony.luck@intel.com>
Thu, 26 Jul 2007 21:27:19 +0000
(14:27 -0700)
Add some sanity checks into __bind_irq_vector().
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/irq_ia64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kernel/irq_ia64.c
b/arch/ia64/kernel/irq_ia64.c
index fcb77338cc09aaadefbe65b735f3a426d313c4ab..8c2bd81acb261be5331bdd2d998605a54ef6400c 100644
(file)
--- a/
arch/ia64/kernel/irq_ia64.c
+++ b/
arch/ia64/kernel/irq_ia64.c
@@
-145,6
+145,9
@@
static int __bind_irq_vector(int irq, int vector, cpumask_t domain)
int cpu;
struct irq_cfg *cfg = &irq_cfg[irq];
+ BUG_ON((unsigned)irq >= NR_IRQS);
+ BUG_ON((unsigned)vector >= IA64_NUM_VECTORS);
+
cpus_and(mask, domain, cpu_online_map);
if (cpus_empty(mask))
return -EINVAL;