Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e38c0ac5 authored by Stefan Agner's avatar Stefan Agner Committed by Jiri Kosina
Browse files

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: c554bb04 ("HID: input: append a suffix matching the application")
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ee345492
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1815,6 +1815,7 @@ void hidinput_disconnect(struct hid_device *hid)
			input_unregister_device(hidinput->input);
		else
			input_free_device(hidinput->input);
		kfree(hidinput->name);
		kfree(hidinput);
	}