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)
commite38c0ac55ee67cf3626cfbc2283f8873dc44d370
tree2ea11784fa1f30e1682f6644b54a479222730b00
parentee345492437043a79db058a3d4f029ebcb52089a
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: c554bb045511 ("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