public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: disable stray gpe correctly
@ 2008-03-10  2:04 Zhang, Rui
  2008-03-11  6:06 ` Len Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Zhang, Rui @ 2008-03-10  2:04 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, Lin, Ming M, robert.moore, davej

Disable stray GPE correctly
https://bugzilla.redhat.com/show_bug.cgi?id=251744
http://bugzilla.kernel.org/show_bug.cgi?id=6217

Sighed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/acpi/events/evgpe.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6/drivers/acpi/events/evgpe.c
===================================================================
--- linux-2.6.orig/drivers/acpi/events/evgpe.c
+++ linux-2.6/drivers/acpi/events/evgpe.c
@@ -248,7 +248,8 @@ acpi_status acpi_ev_disable_gpe(struct a
 
 	ACPI_FUNCTION_TRACE(ev_disable_gpe);
 
-	if (!(gpe_event_info->flags & ACPI_GPE_ENABLE_MASK)) {
+	if (gpe_event_info->flags &&
+		(!(gpe_event_info->flags & ACPI_GPE_ENABLE_MASK))) {
 		return_ACPI_STATUS(AE_OK);
 	}
 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-17  2:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10  2:04 [PATCH] ACPI: disable stray gpe correctly Zhang, Rui
2008-03-11  6:06 ` Len Brown
2008-03-12 19:55   ` Chuck Ebbert
2008-03-12 20:09     ` Len Brown
2008-03-12 21:59       ` Moore, Robert
2008-03-12 22:35         ` Chuck Ebbert
2008-03-14 21:48       ` Moore, Robert
2008-03-17  2:09         ` Zhang, Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox