]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/acpi/asus_acpi.c
don't load asus-acpi if model is not supported
[net-next-2.6.git] / drivers / acpi / asus_acpi.c
index 91571fc0f17d57087f3e63e872773dcc40ddcd0a..428e47b1ca6b06df15005e5905e847ba4b2fe1d0 100644 (file)
@@ -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;