Commit 94ee48b9 authored by Axel Lin's avatar Axel Lin Committed by Matthew Garrett

platform-drivers-x86: msi-wmi: add missing sparse_keymap_free in msi_wmi_init error path

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 4e2441c0
...@@ -272,6 +272,7 @@ static int __init msi_wmi_init(void) ...@@ -272,6 +272,7 @@ static int __init msi_wmi_init(void)
err_free_backlight: err_free_backlight:
backlight_device_unregister(backlight); backlight_device_unregister(backlight);
err_free_input: err_free_input:
sparse_keymap_free(msi_wmi_input_dev);
input_unregister_device(msi_wmi_input_dev); input_unregister_device(msi_wmi_input_dev);
err_uninstall_notifier: err_uninstall_notifier:
wmi_remove_notify_handler(MSIWMI_EVENT_GUID); wmi_remove_notify_handler(MSIWMI_EVENT_GUID);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment