diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2013-05-29 08:45:09 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-12 09:13:38 (GMT) |
commit | 5939212df87e9377dd3813904264b94a962d19ca (patch) | |
tree | b3581025a057f97b140093c84e1cf2a6e890c4e7 /drivers/virtio/virtio_balloon.c | |
parent | 1deb9d341d475ff84262e927d6c0e36fecb9942e (diff) | |
download | linux-5939212df87e9377dd3813904264b94a962d19ca.tar.xz |
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 'drivers/virtio/virtio_balloon.c')
0 files changed, 0 insertions, 0 deletions