OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee34549
)
HID: input: fix leaking custom input node name
author
Stefan Agner
<stefan@agner.ch>
Tue, 28 Aug 2018 11:29:55 +0000
(13:29 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 28 Aug 2018 12:06:34 +0000
(14:06 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-input.c
b/drivers/hid/hid-input.c
index
4e94ea3
..
ac20181
100644
(file)
--- a/
drivers/hid/hid-input.c
+++ b/
drivers/hid/hid-input.c
@@
-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);
}