]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
HID: intel-ish-hid: fixes incorrect error handling
authorPan Bian <bianpan2016@163.com>
Thu, 22 Nov 2018 00:52:33 +0000 (08:52 +0800)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:29 +0000 (14:21 -0300)
commita39c23f81f349f19e465e050a583674675f61079
tree42765cdae16599616a62c3a60209df2c3da1d4f9
parenta79f26dfcd0611cc92b86f125a85bbb8aa4e6e6e
HID: intel-ish-hid: fixes incorrect error handling

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit 6e0856d317440a950b17c00a9283114f025e5699 ]

The memory chunk allocated by hid_allocate_device() should be released
by hid_destroy_device(), not kfree().

Fixes: 0b28cb4bcb1("HID: intel-ish-hid: ISH HID client driver")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/hid/intel-ish-hid/ishtp-hid.c