]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:41:20 +0000 (22:41 +0200)
commitc0cbb9e5d448b1fcec131d7c51257ae7349cdb97
tree6b34d81111db3e8f50ca4c3f6991a300752c1d2f
parent81bb35902b63888f4c576881329c3508ed22375e
HID: input: fix leaking custom input node name

commit e38c0ac55ee67cf3626cfbc2283f8873dc44d370 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-input.c