Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752332AbbFHNKx (ORCPT ); Mon, 8 Jun 2015 09:10:53 -0400 Received: from www.linutronix.de ([62.245.132.108]:41666 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbbFHNKs (ORCPT ); Mon, 8 Jun 2015 09:10:48 -0400 Date: Mon, 8 Jun 2015 15:10:50 +0200 (CEST) From: Thomas Gleixner To: David Binderman cc: "jason@lakedaemon.net" , "linux-kernel@vger.kernel.org" Subject: Re: linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1189611713-1433769051=:4133" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 29 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1189611713-1433769051=:4133 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT On Mon, 8 Jun 2015, David Binderman wrote: > Hello there, > > [linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418]: (style) Array ind > ex 'k' is used before limits check. > > ?? if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { > > Suggest sanity check array index before use. Which version of gcc is being stupid here? Thanks, tglx --8323329-1189611713-1433769051=:4133-- -- 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/