Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754970Ab0ASSDQ (ORCPT ); Tue, 19 Jan 2010 13:03:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754929Ab0ASSDL (ORCPT ); Tue, 19 Jan 2010 13:03:11 -0500 Received: from nlpi157.sbcis.sbc.com ([207.115.36.171]:48469 "EHLO nlpi157.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754002Ab0ASSDI (ORCPT ); Tue, 19 Jan 2010 13:03:08 -0500 Date: Tue, 19 Jan 2010 12:01:38 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Yinghai Lu cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Jesse Barnes , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 29/37] sparseirq: change irq_desc_ptrs to static In-Reply-To: <1263611228-6751-30-git-send-email-yinghai@kernel.org> Message-ID: References: <1263611228-6751-1-git-send-email-yinghai@kernel.org> <1263611228-6751-30-git-send-email-yinghai@kernel.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 491 Lines: 15 On Fri, 15 Jan 2010, Yinghai Lu wrote: > +void replace_irq_desc(unsigned int irq, struct irq_desc *desc) > +{ > + if (irq_desc_ptrs && irq < nr_irqs) > + irq_desc_ptrs[irq] = desc; > +} Why is it now ok to specify an out of range irq number? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/