Skip to content

Commit

Permalink
platform-drivers-x86: msi-wmi: add missing sparse_keymap_free in msi_…
Browse files Browse the repository at this point in the history
…wmi_init error path

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Axel Lin authored and Matthew Garrett committed Aug 5, 2011
1 parent 4e2441c commit 94ee48b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/msi-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ static int __init msi_wmi_init(void)
err_free_backlight:
backlight_device_unregister(backlight);
err_free_input:
sparse_keymap_free(msi_wmi_input_dev);
input_unregister_device(msi_wmi_input_dev);
err_uninstall_notifier:
wmi_remove_notify_handler(MSIWMI_EVENT_GUID);
Expand Down

0 comments on commit 94ee48b

Please sign in to comment.