thinkpad-acpi: Fix procfs hotkey reset command
[safe/jmp/linux-2.6] / drivers / platform / x86 / thinkpad_acpi.c
index 6b66789..dd779e5 100644 (file)
@@ -3569,7 +3569,8 @@ static int hotkey_write(char *buf)
                        hotkey_enabledisable_warn(0);
                        res = -EPERM;
                } else if (strlencmp(cmd, "reset") == 0) {
-                       mask = hotkey_orig_mask;
+                       mask = (hotkey_all_mask | hotkey_source_mask)
+                               & ~hotkey_reserved_mask;
                } else if (sscanf(cmd, "0x%x", &mask) == 1) {
                        /* mask set */
                } else if (sscanf(cmd, "%x", &mask) == 1) {