Benjamin Tissoires
5939212df8
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>
2013-06-12 11:13:38 +02:00
..
2013-04-04 09:59:32 +02:00
2013-04-30 09:37:55 -07:00
2013-01-03 10:27:31 +01:00
2013-04-30 10:12:44 +02:00
2013-04-18 19:06:20 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-05-06 13:07:33 +02:00
2013-01-03 10:27:31 +01:00
2013-05-06 13:07:33 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-25 11:17:31 -08:00
2013-04-24 16:32:27 +02:00
2013-04-30 10:19:21 +02:00
2013-03-27 14:02:45 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-04-30 10:19:07 +02:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:12:44 +02:00
2013-02-21 10:45:01 +01:00
2012-09-25 15:41:02 +02:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:12:44 +02:00
2013-03-01 14:14:59 +01:00
2013-04-30 10:12:44 +02:00
2013-04-29 10:16:55 +02:00
2013-01-03 10:27:31 +01:00
2013-06-12 11:13:38 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:19:07 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2012-06-28 10:34:01 +02:00
2011-06-13 12:52:57 +02:00
2012-06-28 10:34:01 +02:00
2012-06-28 10:34:01 +02:00
2013-03-14 11:50:49 +01:00
2013-03-14 11:50:49 +01:00
2013-04-08 10:33:13 +02:00
2013-04-08 10:33:13 +02:00
2012-11-12 15:30:28 +01:00
2012-11-18 22:58:28 +01:00
2013-03-14 11:50:49 +01:00
2013-03-14 11:50:49 +01:00
2012-11-12 15:30:29 +01:00
2012-11-12 15:30:29 +01:00
2013-01-03 10:27:31 +01:00
2012-10-17 10:44:47 +02:00
2012-11-12 15:30:28 +01:00
2012-11-12 15:30:28 +01:00
2012-11-05 13:17:39 +01:00
2012-07-20 09:50:42 +02:00
2013-03-14 11:50:49 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-02-21 10:45:52 +01:00
2013-02-25 13:26:40 +01:00
2013-05-03 10:26:52 +02:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:40 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-04 09:38:43 +02:00
2013-01-18 10:59:24 +01:00
2013-02-18 10:41:52 +01:00
2011-11-22 23:11:10 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-26 20:16:07 -08:00
2013-04-30 10:19:07 +02:00
2013-04-30 10:19:07 +02:00
2013-02-18 11:28:16 +01:00