]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: fix leaking custom input node name
authorStefan Agner <stefan@agner.ch>
Tue, 28 Aug 2018 11:29:55 +0000 (13:29 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 28 Aug 2018 12:06:34 +0000 (14:06 +0200)
commit4a2f61955ddbab983ed243889739213c3cee8ead
tree2ea11784fa1f30e1682f6644b54a479222730b00
parent8e605c574b6909ec4a1fa6ab58b8dcbcd5a20d42
HID: input: fix leaking custom input node name

Make sure to free the custom input node name on disconnect.

Cc: stable@vger.kernel.org # v4.18+
Fixes: 640ae730a5e7 ("HID: input: append a suffix matching the application")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c