All of lore.kernel.org
 help / color / mirror / Atom feed
* - tc1100-wmi-fail-gracefully-if-acpi-is-disabled.patch removed from -mm tree
@ 2008-02-24  2:17 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-02-24  2:17 UTC (permalink / raw)
  To: carlos, lenb, mingo, mm-commits


The patch titled
     tc1100-wmi: fail gracefully if ACPI is disabled
has been removed from the -mm tree.  Its filename was
     tc1100-wmi-fail-gracefully-if-acpi-is-disabled.patch

This patch was dropped because it is obsolete

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: tc1100-wmi: fail gracefully if ACPI is disabled
From: Carlos Corbacho <carlos@strangeworlds.co.uk>

WMI drivers, like their ACPI counterparts, should also check if ACPI is
disabled or not, and bail out if so, otherwise we cause a crash.

Spotted by Ingo Molnar.

Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/misc/tc1100-wmi.c |    3 +++
 1 file changed, 3 insertions(+)

diff -puN drivers/misc/tc1100-wmi.c~tc1100-wmi-fail-gracefully-if-acpi-is-disabled drivers/misc/tc1100-wmi.c
--- a/drivers/misc/tc1100-wmi.c~tc1100-wmi-fail-gracefully-if-acpi-is-disabled
+++ a/drivers/misc/tc1100-wmi.c
@@ -263,6 +263,9 @@ static int __init tc1100_init(void)
 {
 	int result = 0;
 
+	if (acpi_disabled)
+		return -ENODEV;
+
 	if (!wmi_has_guid(GUID))
 		return -ENODEV;
 
_

Patches currently in -mm which might be from carlos@strangeworlds.co.uk are

origin.patch
acer-wmi-fail-gracefully-if-acpi-is-disabled.patch
tc1100-wmi-fail-gracefully-if-acpi-is-disabled.patch
git-acpi.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-24  2:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24  2:17 - tc1100-wmi-fail-gracefully-if-acpi-is-disabled.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.