summaryrefslogtreecommitdiff
path: root/net/ax25/ax25_dev.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2013-05-29 08:45:09 (GMT)
committerJiri Kosina <jkosina@suse.cz>2013-06-12 09:13:38 (GMT)
commit5939212df87e9377dd3813904264b94a962d19ca (patch)
treeb3581025a057f97b140093c84e1cf2a6e890c4e7 /net/ax25/ax25_dev.c
parent1deb9d341d475ff84262e927d6c0e36fecb9942e (diff)
downloadlinux-fsl-qoriq-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 'net/ax25/ax25_dev.c')
0 files changed, 0 insertions, 0 deletions