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:	Sun,  3 Aug 2008 17:30:06 +0400
From:	Dmitry Baryshkov <dbaryshkov@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Dmitry Baryshkov <dbaryshkov@...il.com>,
	David Brownell <dbrownell@...rs.sourceforge.net>
Subject: [PATCH] gpiolib: dump correct irq trigger type

Use desc->action->flags for dumping irq flags, it is populated with
correct trigger type.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@...il.com>
Cc: David Brownell <dbrownell@...rs.sourceforge.net>
---
 drivers/gpio/gpiolib.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index beaf6b3..a35d19d 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -2,6 +2,7 @@
 #include <linux/module.h>
 #include <linux/irq.h>
 #include <linux/spinlock.h>
+#include <linux/interrupt.h>
 
 #include <asm/gpio.h>
 
@@ -570,7 +571,7 @@ static void gpiolib_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 			if (irq >= 0 && desc->action) {
 				char *trigger;
 
-				switch (desc->status & IRQ_TYPE_SENSE_MASK) {
+				switch (desc->action->flags & IRQ_TYPE_SENSE_MASK) {
 				case IRQ_TYPE_NONE:
 					trigger = "(default)";
 					break;
-- 
1.5.6.3

--
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