Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6bde71ec1ea1f37254892ef2058176f3171a0d62
Commit:     6bde71ec1ea1f37254892ef2058176f3171a0d62
Parent:     d941cf5e373c356723fa648b9f0302a11c9b1770
Author:     Kenji Kaneshige <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 26 15:30:45 2007 +0900
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Thu Jul 26 14:27:19 2007 -0700

    [IA64] Add sanity check into __bind_irq_vector
    
    Add some sanity checks into __bind_irq_vector().
    
    Signed-off-by: Kenji Kaneshige <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/kernel/irq_ia64.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c
index fcb7733..8c2bd81 100644
--- 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to