projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef9cff
)
don't load asus-acpi if model is not supported
author
Zhang Rui
<rui.zhang@intel.com>
Fri, 17 Oct 2008 05:42:41 +0000
(
01:42
-0400)
committer
Len Brown
<len.brown@intel.com>
Fri, 17 Oct 2008 05:42:41 +0000
(
01:42
-0400)
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>
drivers/acpi/asus_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/asus_acpi.c
b/drivers/acpi/asus_acpi.c
index
91571fc
..
428e47b
100644
(file)
--- 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;