aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-core.c
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2020-08-31 17:06:43 +0800
committerJiri Kosina <jkosina@suse.cz>2020-09-01 09:11:24 +0200
commitb7429ea53d6c0936a0f10a5d64164f0aea440143 (patch)
tree9cfe864249a487a7d27e47da36d3c3e3e0145fa2 /drivers/hid/hid-core.c
parentHID: microsoft: Add rumble support for the 8bitdo SN30 Pro+ controller (diff)
downloadlinux-dev-b7429ea53d6c0936a0f10a5d64164f0aea440143.tar.xz
linux-dev-b7429ea53d6c0936a0f10a5d64164f0aea440143.zip
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>
Diffstat (limited to 'drivers/hid/hid-core.c')
0 files changed, 0 insertions, 0 deletions