Skip to content
Snippets Groups Projects
Commit 1fcb8bb6 authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov
Browse files

Input: wistron_btns - fix a memory leak in wb_module_init error path


select_keymap() calls copy_keymap() to allocate a memory for keymap.
This patch adds a missing kfree(keymap) in wb_module_init error path.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 671386bb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment