Miaoqian Lin
24f9dfdaec
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: b7429ea53d ("HID: elan: Fix memleak in elan_input_configured")
Fixes: 9a6a4193d6 ("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-09 10:22:47 +02:00
..
2022-06-09 10:22:39 +02:00
2022-04-27 14:38:58 +02:00
2022-03-23 09:16:41 +01:00
2022-06-09 10:22:47 +02:00
2022-06-09 10:22:47 +02:00
2022-06-06 08:43:40 +02:00
2022-05-09 09:14:37 +02:00
2022-06-09 10:22:40 +02:00
2022-05-25 09:57:32 +02:00
2022-04-08 14:23:09 +02:00
2022-06-09 10:22:42 +02:00
2022-06-09 10:22:33 +02:00
2022-06-09 10:22:43 +02:00
2022-04-08 14:23:30 +02:00
2022-04-08 14:23:31 +02:00
2022-06-09 10:22:41 +02:00
2021-07-21 15:53:24 +02:00
2022-04-27 14:38:58 +02:00
2022-05-25 09:57:29 +02:00
2022-06-09 10:22:47 +02:00
2022-05-12 12:30:05 +02:00
2022-04-20 09:34:09 +02:00
2022-04-08 14:23:44 +02:00
2022-05-25 09:57:34 +02:00
2022-06-09 10:22:46 +02:00
2022-04-08 14:22:50 +02:00
2022-06-09 10:22:47 +02:00
2022-05-30 09:29:00 +02:00
2022-05-18 10:26:51 +02:00
2022-04-08 14:22:50 +02:00
2022-06-06 08:43:37 +02:00
2022-05-09 09:14:31 +02:00
2022-06-09 10:22:43 +02:00
2022-06-09 10:22:43 +02:00
2022-05-18 10:26:53 +02:00
2022-06-09 10:22:30 +02:00
2022-04-13 20:59:28 +02:00
2022-06-09 10:22:43 +02:00
2022-04-08 14:24:10 +02:00
2022-06-09 10:22:33 +02:00
2022-06-09 10:22:39 +02:00
2022-05-09 09:14:34 +02:00
2022-04-08 14:23:43 +02:00
2022-05-09 09:14:44 +02:00
2022-06-09 10:22:34 +02:00
2022-06-09 10:22:47 +02:00
2022-06-09 10:22:46 +02:00
2022-06-06 08:43:36 +02:00
2022-04-08 14:23:48 +02:00
2022-06-09 10:22:39 +02:00
2022-06-09 10:22:36 +02:00
2022-04-13 20:59:11 +02:00
2022-04-13 20:59:14 +02:00
2022-06-09 10:22:42 +02:00
2022-04-27 14:39:00 +02:00
2022-05-09 09:14:34 +02:00
2022-06-09 10:22:42 +02:00
2022-06-09 10:22:29 +02:00
2022-04-13 20:59:05 +02:00
2022-04-08 14:23:44 +02:00
2022-04-13 20:59:01 +02:00
2022-04-08 14:23:44 +02:00
2021-04-07 11:52:26 +02:00
2022-04-20 09:34:16 +02:00
2022-04-08 14:23:47 +02:00
2022-04-27 14:38:55 +02:00
2022-05-25 09:57:26 +02:00
2022-05-18 10:26:50 +02:00
2022-06-09 10:22:36 +02:00
2022-05-18 10:26:55 +02:00
2022-06-09 10:22:41 +02:00
2022-04-08 14:24:02 +02:00
2022-06-09 10:22:46 +02:00
2022-06-09 10:22:39 +02:00
2022-06-09 10:22:47 +02:00
2022-05-09 09:14:42 +02:00
2022-05-18 10:26:55 +02:00
2022-06-09 10:22:29 +02:00
2022-04-13 20:59:15 +02:00
2022-04-20 09:34:13 +02:00
2022-05-25 09:57:27 +02:00
2022-06-09 10:22:31 +02:00
2022-04-08 14:23:50 +02:00
2022-03-16 14:23:43 +01:00
2022-04-13 20:59:11 +02:00
2022-05-25 09:57:23 +02:00
2022-04-08 14:24:17 +02:00
2021-12-22 09:32:39 +01:00