diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2013-05-29 10:45:09 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-12 11:13:38 +0200 |
commit | 5939212df87e9377dd3813904264b94a962d19ca (patch) | |
tree | b3581025a057f97b140093c84e1cf2a6e890c4e7 /include/linux/edma.h | |
parent | 1deb9d341d475ff84262e927d6c0e36fecb9942e (diff) |
HID: multitouch: prevent memleak with the allocated name
mt_free_input_name() was never called during .remove():
hid_hw_stop() removes the hid_input items in hdev->inputs, and so the
list is therefore empty after the call. In the end, we never free the
special names that has been allocated during .probe().
Restore the original name before freeing it to avoid acessing already
freed pointer.
This fixes a regression introduced by 49a5a827a ("HID: multitouch: append " Pen" to
the name of the stylus input")
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/edma.h')
0 files changed, 0 insertions, 0 deletions