Skip to content
Commit b7429ea5 authored by Dinghao Liu's avatar Dinghao Liu Committed by Jiri Kosina
Browse files

HID: elan: Fix memleak in elan_input_configured



When input_mt_init_slots() fails, input should be freed
to prevent memleak. When input_register_device() fails,
we should call input_mt_destroy_slots() to free memory
allocated by input_mt_init_slots().

Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 724a419e
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