lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 20 Dec 2011 13:58:52 +0900
From:	Tomoya MORINAGA <tomoya.rohm@...il.com>
To:	Grant Likely <grant.likely@...retlab.ca>,
	linux-kernel@...r.kernel.org
Cc:	qi.wang@...el.com, yong.y.wang@...el.com, joel.clark@...el.com,
	kok.howg.ewe@...el.com, Tomoya MORINAGA <tomoya.rohm@...il.com>
Subject: [PATCH 1/2] gpio-pch: fix a bug in the interrupt handler

Also need the following patch for gpio-pch

commit 4d052213ff8f71a4a70fc4eed71b773cfde51fcf
Author: Feng Tang <feng.tang@...el.com>
Date:   Tue Dec 13 23:53:50 2011 +0800

    gpio-ml-ioh: Add the irq_disable/irq_enable hooks for ml-ioh irq chip

    These hooks will be needed by the general disabl/enable_irq();

    Signed-off-by: Feng Tang <feng.tang@...el.com>
    Signed-off-by: Grant Likely <grant.likely@...retlab.ca>

Reported-by: Feng Tang <feng.tang@...el.com>
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@...il.com>
---
 drivers/gpio/gpio-pch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c
index f060329..01bd405 100644
--- a/drivers/gpio/gpio-pch.c
+++ b/drivers/gpio/gpio-pch.c
@@ -320,7 +320,7 @@ static irqreturn_t pch_gpio_handler(int irq, void *dev_id)
 	int i;
 	int ret = IRQ_NONE;
 
-	for (i = 0; i < gpio_pins[chip->ioh]; i++) {
+	for (i = 0; i < gpio_pins[chip->ioh]; i++, chip++) {
 		if (reg_val & BIT(i)) {
 			dev_dbg(chip->dev, "%s:[%d]:irq=%d  status=0x%x\n",
 				__func__, i, irq, reg_val);
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ