mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 05:32:27 +00:00
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>
This commit is contained in:
parent
ee34549243
commit
e38c0ac55e
@ -1815,6 +1815,7 @@ void hidinput_disconnect(struct hid_device *hid)
|
|||||||
input_unregister_device(hidinput->input);
|
input_unregister_device(hidinput->input);
|
||||||
else
|
else
|
||||||
input_free_device(hidinput->input);
|
input_free_device(hidinput->input);
|
||||||
|
kfree(hidinput->name);
|
||||||
kfree(hidinput);
|
kfree(hidinput);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user