Liwei Song
4773fadedc
drm/radeon: free iio for atombios when driver shutdown
Fix below kmemleak when unload radeon driver:
unreferenced object 0xffff9f8608ede200 (size 512):
comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s)
hex dump (first 32 bytes):
00 00 00 00 c4 aa ec aa 14 ab 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<0000000062fadebe>] kmem_cache_alloc_trace+0x2f1/0x500
[<00000000b6883cea>] atom_parse+0x117/0x230 [radeon]
[<00000000158c23fd>] radeon_atombios_init+0xab/0x170 [radeon]
[<00000000683f672e>] si_init+0x57/0x750 [radeon]
[<00000000566cc31f>] radeon_device_init+0x559/0x9c0 [radeon]
[<0000000046efabb3>] radeon_driver_load_kms+0xc1/0x1a0 [radeon]
[<00000000b5155064>] drm_dev_register+0xdd/0x1d0
[<0000000045fec835>] radeon_pci_probe+0xbd/0x100 [radeon]
[<00000000e69ecca3>] pci_device_probe+0xe1/0x160
[<0000000019484b76>] really_probe.part.0+0xc1/0x2c0
[<000000003f2649da>] __driver_probe_device+0x96/0x130
[<00000000231c5bb1>] driver_probe_device+0x24/0xf0
[<0000000000a42377>] __driver_attach+0x77/0x190
[<00000000d7574da6>] bus_for_each_dev+0x7f/0xd0
[<00000000633166d2>] driver_attach+0x1e/0x30
[<00000000313b05b8>] bus_add_driver+0x12c/0x1e0
iio was allocated in atom_index_iio() called by atom_parse(),
but it doesn't got released when the dirver is shutdown.
Fix this kmemleak by free it in radeon_atombios_fini().
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-01-09 17:02:19 -05:00
..
2022-11-22 13:14:44 +02:00
2022-11-09 15:25:24 +01:00
2022-11-07 10:19:04 -08:00
2022-08-30 11:12:52 +01:00
2022-11-09 15:41:27 +01:00
2022-11-12 07:51:06 +09:00
2022-10-28 16:48:29 -07:00
2022-10-12 10:23:24 -07:00
2022-11-18 13:59:45 -08:00
2022-11-02 14:15:42 -07:00
2022-10-08 08:56:37 -07:00
2022-10-29 00:24:03 +02:00
2022-11-24 11:05:43 +10:00
2022-11-03 15:50:28 +00:00
2022-09-09 10:37:52 +02:00
2022-10-23 20:39:26 -04:00
2022-10-25 15:09:23 +02:00
2022-10-09 13:24:01 -07:00
2022-10-10 13:04:25 -07:00
2022-11-04 16:03:43 -07:00
2022-10-14 18:41:41 -07:00
2022-09-26 03:59:43 +09:00
2022-11-08 10:43:57 +05:30
2022-11-11 23:49:51 +03:00
2022-10-13 11:07:13 -07:00
2022-11-08 16:45:31 +01:00
2022-11-24 11:05:43 +10:00
2022-10-08 08:56:37 -07:00
2022-09-28 21:10:57 +09:30
2022-10-20 13:47:54 +02:00
2023-01-09 17:02:19 -05:00
2022-11-11 09:03:19 -08:00
2022-09-20 17:29:29 +02:00
2022-10-27 10:58:14 +00:00
2022-11-04 16:47:01 -07:00
2022-09-13 17:01:18 -05:00
2022-10-25 19:08:07 +02:00
2022-11-01 13:46:30 +01:00
2022-10-12 23:45:29 +02:00
2022-09-21 20:33:49 +02:00
2022-11-01 08:48:13 +00:00
2022-11-24 11:05:43 +10:00
2022-11-18 17:56:29 -08:00
2022-09-20 15:57:00 +03:00
2022-11-19 10:46:52 +01:00
2022-10-08 08:56:37 -07:00
2022-10-12 10:23:24 -07:00
2022-11-14 10:43:13 +00:00
2022-10-24 11:32:10 +02:00
2022-10-09 14:05:15 -07:00
2022-10-05 21:51:58 -05:00
2022-11-18 13:59:45 -08:00
2022-11-24 11:05:43 +10:00
2022-11-25 16:14:58 +01:00
2022-08-31 23:39:57 -04:00
2022-10-23 12:04:56 -07:00
2022-11-24 11:05:43 +10:00
2022-11-16 17:00:39 +01:00
2022-11-07 16:53:04 +01:00
2022-11-17 10:38:37 +01:00
2022-10-30 21:43:26 +00:00
2022-10-14 18:41:41 -07:00
2022-11-18 13:59:45 -08:00
2022-11-10 18:45:59 +01:00
2022-10-10 13:13:51 -07:00
2022-10-27 09:12:05 +02:00
2022-11-09 15:40:32 +01:00
2022-11-03 15:50:28 +00:00
2022-09-27 08:12:16 +02:00
2022-10-14 12:38:03 -07:00
2022-11-05 13:01:25 +05:30
2022-11-15 09:13:59 +01:00
2022-11-16 10:36:13 -08:00
2022-10-10 18:11:11 +02:00
2022-10-07 11:48:30 -07:00
2022-10-10 09:10:28 -07:00
2022-10-10 08:37:24 +01:00
2022-10-07 11:32:10 -07:00
2022-10-07 11:24:20 -07:00
2022-10-05 09:20:44 -06:00
2022-10-08 10:06:48 -07:00
2022-09-21 11:21:33 -06:00
2022-10-18 22:36:54 +02:00
2022-11-19 15:51:22 -08:00
2022-11-19 15:51:22 -08:00
2022-11-09 15:40:14 +01:00
2022-11-10 18:45:40 +01:00
2022-11-14 15:52:53 +08:00
2022-10-28 17:00:38 +05:30
2022-11-11 09:13:52 -08:00
2022-09-30 14:33:23 +02:00
2022-09-19 15:08:38 +02:00
2022-11-24 11:05:43 +10:00
2022-11-17 17:46:16 +00:00
2022-10-10 17:53:04 -07:00
2022-10-15 19:33:57 +02:00
2022-10-11 17:42:58 -06:00
2022-11-18 10:59:52 -08:00
2022-10-22 03:29:32 +00:00
2022-09-01 17:00:33 +02:00
2022-11-17 22:06:28 +01:00
2022-10-10 14:02:53 -07:00
2022-11-10 12:03:36 -07:00
2022-10-10 14:02:53 -07:00
2022-12-09 11:53:52 +10:00
2022-10-08 08:56:37 -07:00
2022-10-13 09:33:03 -04:00
2022-10-08 08:56:37 -07:00
2022-11-01 12:21:53 -07:00
2022-11-24 11:05:43 +10:00
2022-11-22 13:13:51 +02:00
2022-09-08 16:26:17 -06:00