diff options
| -rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index ae203558ac90..e7f73287636c 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
| @@ -3015,8 +3015,6 @@ static void hotkey_exit(void) | |||
| 3015 | if (hotkey_dev_attributes) | 3015 | if (hotkey_dev_attributes) |
| 3016 | delete_attr_set(hotkey_dev_attributes, &tpacpi_pdev->dev.kobj); | 3016 | delete_attr_set(hotkey_dev_attributes, &tpacpi_pdev->dev.kobj); |
| 3017 | 3017 | ||
| 3018 | kfree(hotkey_keycode_map); | ||
| 3019 | |||
| 3020 | dbg_printk(TPACPI_DBG_EXIT | TPACPI_DBG_HKEY, | 3018 | dbg_printk(TPACPI_DBG_EXIT | TPACPI_DBG_HKEY, |
| 3021 | "restoring original HKEY status and mask\n"); | 3019 | "restoring original HKEY status and mask\n"); |
| 3022 | /* yes, there is a bitwise or below, we want the | 3020 | /* yes, there is a bitwise or below, we want the |
| @@ -8937,6 +8935,7 @@ static void thinkpad_acpi_module_exit(void) | |||
| 8937 | input_unregister_device(tpacpi_inputdev); | 8935 | input_unregister_device(tpacpi_inputdev); |
| 8938 | else | 8936 | else |
| 8939 | input_free_device(tpacpi_inputdev); | 8937 | input_free_device(tpacpi_inputdev); |
| 8938 | kfree(hotkey_keycode_map); | ||
| 8940 | } | 8939 | } |
| 8941 | 8940 | ||
| 8942 | if (tpacpi_hwmon) | 8941 | if (tpacpi_hwmon) |
