diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-05 23:05:20 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 14:46:10 -0400 |
commit | 94ee48b9287c5c22c90754a48dbcf80b2df99d5f (patch) | |
tree | 8f4c71e11c6a849f5a200e34e36e82e2b42180ae /drivers | |
parent | 4e2441c046737d3fb452ae46f0e4b12e18cf440d (diff) |
platform-drivers-x86: msi-wmi: add missing sparse_keymap_free in msi_wmi_init error path
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/msi-wmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/msi-wmi.c b/drivers/platform/x86/msi-wmi.c index c832e3356cd6..6f40bf202dc7 100644 --- a/drivers/platform/x86/msi-wmi.c +++ b/drivers/platform/x86/msi-wmi.c | |||
@@ -272,6 +272,7 @@ static int __init msi_wmi_init(void) | |||
272 | err_free_backlight: | 272 | err_free_backlight: |
273 | backlight_device_unregister(backlight); | 273 | backlight_device_unregister(backlight); |
274 | err_free_input: | 274 | err_free_input: |
275 | sparse_keymap_free(msi_wmi_input_dev); | ||
275 | input_unregister_device(msi_wmi_input_dev); | 276 | input_unregister_device(msi_wmi_input_dev); |
276 | err_uninstall_notifier: | 277 | err_uninstall_notifier: |
277 | wmi_remove_notify_handler(MSIWMI_EVENT_GUID); | 278 | wmi_remove_notify_handler(MSIWMI_EVENT_GUID); |