commit | b7429ea53d6c0936a0f10a5d64164f0aea440143 | [log] [tgz] |
---|---|---|
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | Mon Aug 31 17:06:43 2020 +0800 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Sep 01 09:11:24 2020 +0200 |
tree | 9cfe864249a487a7d27e47da36d3c3e3e0145fa2 | |
parent | 724a419ea28f7514a391e80040230f69cf626707 [diff] |
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: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: Jiri Kosina <jkosina@suse.cz>