Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752878AbbFHLKk (ORCPT ); Mon, 8 Jun 2015 07:10:40 -0400 Received: from dub004-omc2s30.hotmail.com ([157.55.1.169]:61255 "EHLO DUB004-OMC2S30.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752670AbbFHLKd convert rfc822-to-8bit (ORCPT ); Mon, 8 Jun 2015 07:10:33 -0400 X-Greylist: delayed 302 seconds by postgrey-1.27 at vger.kernel.org; Mon, 08 Jun 2015 07:10:33 EDT X-TMN: [g3LqCjrdbeYaB7NCOmvO2xQqXBhldWVj] X-Originating-Email: [dcb314@hotmail.com] Message-ID: From: David Binderman To: "tglx@linutronix.de" , "jason@lakedaemon.net" CC: "linux-kernel@vger.kernel.org" Subject: linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ? Date: Mon, 8 Jun 2015 11:05:30 +0000 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 08 Jun 2015 11:05:30.0804 (UTC) FILETIME=[089B2740:01D0A1DB] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 515 Lines: 18 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. Regards David Binderman -- 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/