From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: - tc1100-wmi-fail-gracefully-if-acpi-is-disabled.patch removed from -mm tree Date: Sat, 23 Feb 2008 18:17:23 -0800 Message-ID: <200802240217.m1O2HNn2025383@imap1.linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from smtp1.linux-foundation.org ([207.189.120.13]:54202 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753680AbYBXCRy (ORCPT ); Sat, 23 Feb 2008 21:17:54 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: carlos@strangeworlds.co.uk, lenb@kernel.org, mingo@elte.hu, mm-commits@vger.kernel.org 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 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 Cc: Ingo Molnar Cc: Len Brown Signed-off-by: Andrew Morton --- 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