Miaoqian Lin
f1d4f19a79
HID: elan: Fix potential double free in elan_input_configured
...
[ Upstream commit 1af20714fedad238362571620be0bd690ded05b6 ]
'input' is a managed resource allocated with devm_input_allocate_device(),
so there is no need to call input_free_device() explicitly or
there will be a double free.
According to the doc of devm_input_allocate_device():
* Managed input devices do not need to be explicitly unregistered or
* freed as it will be done automatically when owner device unbinds from
* its driver (or binding fails).
Fixes: b7429ea53d6c ("HID: elan: Fix memleak in elan_input_configured")
Fixes: 9a6a4193d65b ("HID: Add driver for USB ELAN Touchpad")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:11:33 +02:00
..
2022-04-15 14:18:12 +02:00
2022-04-15 14:17:58 +02:00
2021-10-06 15:42:39 +02:00
2019-08-05 14:37:15 +02:00
2019-05-30 11:26:32 -07:00
2021-04-28 13:19:15 +02:00
2022-01-27 09:19:41 +01:00
2019-06-05 17:36:37 +02:00
2021-12-14 14:48:58 +01:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-10-06 15:42:39 +02:00
2022-06-14 18:11:27 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-06-05 17:36:37 +02:00
2021-07-14 16:53:16 +02:00
2021-12-14 14:48:59 +01:00
2019-08-22 17:11:58 +02:00
2019-08-19 14:13:00 +02:00
2019-09-03 16:52:04 +02:00
2020-12-02 08:49:47 +01:00
2022-03-08 19:07:50 +01:00
2019-10-03 15:36:40 -04:00
2022-06-14 18:11:33 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2021-12-14 14:48:58 +01:00
2021-06-18 09:58:58 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2021-12-29 12:23:33 +01:00
2019-10-03 15:36:40 -04:00
2019-10-01 14:49:41 -04:00
2019-05-30 11:26:32 -07:00
2022-02-23 11:59:54 +01:00
2022-03-08 19:07:50 +01:00
2020-12-02 08:49:47 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-06-14 18:11:33 +02:00
2019-08-22 17:11:58 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2021-12-14 14:48:59 +01:00
2019-10-03 15:36:40 -04:00
2022-04-15 14:17:56 +02:00
2020-12-02 08:49:48 +01:00
2019-04-03 17:14:13 +02:00
2021-06-10 13:37:10 +02:00
2019-01-14 20:11:01 +01:00
2021-03-11 14:06:50 +01:00
2020-09-17 13:47:48 +02:00
2019-05-30 11:26:32 -07:00
2022-06-06 08:33:51 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-08-22 17:11:58 +02:00
2019-06-05 17:30:28 +02:00
2019-06-28 12:30:08 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2021-05-14 09:44:26 +02:00
2019-06-05 17:36:37 +02:00
2021-12-14 14:48:59 +01:00
2022-02-23 11:59:54 +01:00
2019-05-30 11:26:32 -07:00
2020-01-04 19:18:13 +01:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2021-12-14 14:48:59 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 14:48:59 +01:00
2019-07-14 16:09:19 +03:00
2021-06-18 09:58:58 +02:00
2019-05-30 11:26:35 -07:00
2020-06-07 13:18:47 +02:00
2019-05-30 11:26:32 -07:00
2020-07-29 10:18:36 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-12-14 14:48:58 +01:00
2021-12-14 14:48:59 +01:00
2022-01-27 09:19:36 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2019-02-21 12:00:54 +01:00
2019-06-05 17:36:37 +02:00
2019-02-21 12:00:53 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2020-01-17 19:48:15 +01:00
2022-01-05 12:37:43 +01:00
2019-09-03 16:52:04 +02:00
2022-01-27 09:19:26 +01:00
2021-12-14 14:48:59 +01:00
2022-01-27 09:19:26 +01:00
2021-12-01 09:23:28 +01:00
2019-11-06 21:37:29 +01:00