Basavaraj Natikar
5ad755fd2b
HID: amd_sfh: Fix memory leak in amd_sfh_work
...
Kmemleak tool detected a memory leak in the amd_sfh driver.
====================
unreferenced object 0xffff88810228ada0 (size 32):
comm "insmod", pid 3968, jiffies 4295056001 (age 775.792s)
hex dump (first 32 bytes):
00 20 73 1f 81 88 ff ff 00 01 00 00 00 00 ad de . s.............
22 01 00 00 00 00 ad de 01 00 02 00 00 00 00 00 "...............
backtrace:
[<000000007b4c8799>] kmem_cache_alloc_trace+0x163/0x4f0
[<0000000005326893>] amd_sfh_get_report+0xa4/0x1d0 [amd_sfh]
[<000000002a9e5ec4>] amdtp_hid_request+0x62/0x80 [amd_sfh]
[<00000000b8a95807>] sensor_hub_get_feature+0x145/0x270 [hid_sensor_hub]
[<00000000fda054ee>] hid_sensor_parse_common_attributes+0x215/0x460 [hid_sensor_iio_common]
[<0000000021279ecf>] hid_accel_3d_probe+0xff/0x4a0 [hid_sensor_accel_3d]
[<00000000915760ce>] platform_probe+0x6a/0xd0
[<0000000060258a1f>] really_probe+0x192/0x620
[<00000000fa812f2d>] driver_probe_device+0x14a/0x1d0
[<000000005e79f7fd>] __device_attach_driver+0xbd/0x110
[<0000000070d15018>] bus_for_each_drv+0xfd/0x160
[<0000000013a3c312>] __device_attach+0x18b/0x220
[<000000008c7b4afc>] device_initial_probe+0x13/0x20
[<00000000e6e99665>] bus_probe_device+0xfe/0x120
[<00000000833fa90b>] device_add+0x6a6/0xe00
[<00000000fa901078>] platform_device_add+0x180/0x380
====================
The fix is to freeing request_list entry once the processed entry is
removed from the request_list.
Fixes: 4b2c53d93a4b ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-05-27 15:40:34 +02:00
..
2021-05-27 15:40:34 +02:00
2021-05-07 14:32:28 +02:00
2021-02-23 11:35:07 +01:00
2021-05-05 14:31:55 +02:00
2021-05-27 15:40:34 +02:00
2021-05-05 14:29:13 +02:00
2019-05-30 11:26:32 -07:00
2021-04-29 21:47:22 +02:00
2020-08-17 12:17:52 +02:00
2020-03-13 17:33:11 +01:00
2021-05-05 14:40:42 +02: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
2019-05-30 11:26:32 -07:00
2020-02-18 14:43:51 +01:00
2019-05-30 11:26:32 -07:00
2021-01-14 13:13:24 +01:00
2019-06-05 17:36:37 +02:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2020-08-17 11:38:49 +02:00
2021-03-08 14:55:31 +01:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2021-05-05 14:31:05 +02:00
2019-10-03 15:36:40 -04:00
2021-04-07 12:46:33 +02:00
2020-11-25 17:40:23 +01:00
2019-06-05 17:37:04 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-05-27 15:40:34 +02: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
2020-03-18 13:36:21 +01:00
2021-03-08 11:00:24 +01:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2019-08-05 14:18:42 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2020-09-28 08:57:28 +00:00
2019-05-30 11:26:32 -07:00
2021-05-05 14:56:02 +02:00
2021-05-05 14:31:05 +02:00
2021-02-09 10:56:58 +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-04-07 18:46:20 +02:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2021-04-07 12:48:20 +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
2017-11-02 11:10:55 +01:00
2021-02-05 10:13:28 +01:00
2021-03-08 11:05:50 +01:00
2017-11-02 11:10:55 +01:00
2019-10-03 15:36:40 -04:00
2021-03-08 11:05:50 +01:00
2021-05-27 15:40:34 +02:00
2020-08-17 11:38:49 +02:00
2021-05-27 15:40:34 +02:00
2019-01-14 20:11:01 +01:00
2020-11-05 11:16:53 +01:00
2020-11-25 14:30:33 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2021-05-27 15:40:34 +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
2020-09-03 16:18:55 +02:00
2021-04-07 18:46:20 +02:00
2019-06-05 17:30:28 +02:00
2020-04-01 12:26:12 +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-03-08 11:08:58 +01:00
2021-02-18 17:41:51 +01:00
2019-06-05 17:36:37 +02:00
2019-10-01 16:21:04 +02:00
2021-05-05 14:47:16 +02:00
2018-06-25 15:23:40 +02:00
2019-05-30 11:26:32 -07:00
2020-10-23 16:16:31 -07:00
2021-02-05 10:16:45 +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
2020-10-15 20:41:43 +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-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-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
2021-05-05 14:21:08 +02:00
2021-05-26 12:36:46 +02:00
2021-05-05 14:36:18 +02:00
2019-05-30 11:26:35 -07:00
2021-01-18 10:55:05 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 09:21:21 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-05 14:26:38 +02: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
2019-04-17 16:39:43 +02:00
2021-01-08 14:05:48 +01:00
2021-04-07 18:46:20 +02:00
2019-02-21 12:00:54 +01:00
2021-04-07 18:46:20 +02:00
2019-02-21 12:00:54 +01:00
2020-07-20 12:24:41 +02:00
2019-02-21 12:00:53 +01:00
2020-09-30 22:44:26 +02:00
2019-05-30 11:26:32 -07:00
2021-01-07 10:14:58 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02: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-11-27 15:48:31 +01:00
2021-05-05 14:29:13 +02:00
2021-05-05 14:21:08 +02:00
2020-01-10 15:34:28 +01:00
2021-04-07 18:46:20 +02:00
2021-04-29 21:47:03 +02:00
2021-04-13 08:19:41 +02:00
2019-11-06 21:37:29 +01:00