]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/platform/x86/acer-wmi.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[karo-tx-linux.git] / drivers / platform / x86 / acer-wmi.c
index afed7018a2b5fe9b006de12716814a2dc00502d0..c9076bdaf2c18fc9a34c3d3f906cd333971f57e5 100644 (file)
@@ -511,6 +511,24 @@ static struct dmi_system_id acer_quirks[] = {
                },
                .driver_data = &quirk_fujitsu_amilo_li_1718,
        },
+       {
+               .callback = dmi_matched,
+               .ident = "Lenovo Ideapad S205-10382JG",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "10382JG"),
+               },
+               .driver_data = &quirk_lenovo_ideapad_s205,
+       },
+       {
+               .callback = dmi_matched,
+               .ident = "Lenovo Ideapad S205-1038DPG",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "1038DPG"),
+               },
+               .driver_data = &quirk_lenovo_ideapad_s205,
+       },
        {}
 };
 
@@ -1204,6 +1222,9 @@ static acpi_status WMID_set_capabilities(void)
                        devices = *((u32 *) obj->buffer.pointer);
                } else if (obj->type == ACPI_TYPE_INTEGER) {
                        devices = (u32) obj->integer.value;
+               } else {
+                       kfree(out.pointer);
+                       return AE_ERROR;
                }
        } else {
                kfree(out.pointer);