* - acer-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
acer-wmi: fail gracefully if ACPI is disabled
has been removed from the -mm tree. Its filename was
acer-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: acer-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>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/misc/acer-wmi.c | 3 +++
1 file changed, 3 insertions(+)
diff -puN drivers/misc/acer-wmi.c~acer-wmi-fail-gracefully-if-acpi-is-disabled drivers/misc/acer-wmi.c
--- a/drivers/misc/acer-wmi.c~acer-wmi-fail-gracefully-if-acpi-is-disabled
+++ a/drivers/misc/acer-wmi.c
@@ -1038,6 +1038,9 @@ static int __init acer_wmi_init(void)
{
int err;
+ if (acpi_disabled)
+ return -ENODEV;
+
printk(ACER_INFO "Acer Laptop ACPI-WMI Extras version %s\n",
ACER_WMI_VERSION);
_
Patches currently in -mm which might be from carlos@strangeworlds.co.uk are
origin.patch
acer-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:18 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 - acer-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.