aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2008-10-17 01:42:41 -0400
committerLen Brown <len.brown@intel.com>2008-10-17 01:42:41 -0400
commit7745384080ef70f7710530afa3e45477b126e056 (patch)
treebd25051213d8efbbb6499dc6a87a4945c9fb6078 /drivers/acpi
parent0ef9cff15d47b296d4a7feecf36e7989cebf9a33 (diff)
downloadkernel_samsung_crespo-7745384080ef70f7710530afa3e45477b126e056.zip
kernel_samsung_crespo-7745384080ef70f7710530afa3e45477b126e056.tar.gz
kernel_samsung_crespo-7745384080ef70f7710530afa3e45477b126e056.tar.bz2
don't load asus-acpi if model is not supported
asus_hotk_get_info should return -ENODEV if the model is not supported. http://bugzilla.kernel.org/show_bug.cgi?id=10389 Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/asus_acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 91571fc..428e47b 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -1244,6 +1244,8 @@ static int asus_hotk_get_info(void)
"default values\n", string);
printk(KERN_NOTICE
" send /proc/acpi/dsdt to the developers\n");
+ kfree(model);
+ return -ENODEV;
}
hotk->methods = &model_conf[hotk->model];
return AE_OK;