Armin Wolf
b49b022f7d
drm/amd/display: Fix memory leak in dm_sw_fini()
...
[ Upstream commit bae67893578d608e35691dcdfa90c4957debf1d3 ]
After destroying dmub_srv, the memory associated with it is
not freed, causing a memory leak:
unreferenced object 0xffff896302b45800 (size 1024):
comm "(udev-worker)", pid 222, jiffies 4294894636
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc 6265fd77):
[<ffffffff993495ed>] kmalloc_trace+0x29d/0x340
[<ffffffffc0ea4a94>] dm_dmub_sw_init+0xb4/0x450 [amdgpu]
[<ffffffffc0ea4e55>] dm_sw_init+0x15/0x2b0 [amdgpu]
[<ffffffffc0ba8557>] amdgpu_device_init+0x1417/0x24e0 [amdgpu]
[<ffffffffc0bab285>] amdgpu_driver_load_kms+0x15/0x190 [amdgpu]
[<ffffffffc0ba09c7>] amdgpu_pci_probe+0x187/0x4e0 [amdgpu]
[<ffffffff9968fd1e>] local_pci_probe+0x3e/0x90
[<ffffffff996918a3>] pci_device_probe+0xc3/0x230
[<ffffffff99805872>] really_probe+0xe2/0x480
[<ffffffff99805c98>] __driver_probe_device+0x78/0x160
[<ffffffff99805daf>] driver_probe_device+0x1f/0x90
[<ffffffff9980601e>] __driver_attach+0xce/0x1c0
[<ffffffff99803170>] bus_for_each_dev+0x70/0xc0
[<ffffffff99804822>] bus_add_driver+0x112/0x210
[<ffffffff99807245>] driver_register+0x55/0x100
[<ffffffff990012d1>] do_one_initcall+0x41/0x300
Fix this by freeing dmub_srv after destroying it.
Fixes: 743b9786b14a ("drm/amd/display: Hook up the DMUB service in DM")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:16:51 +01:00
..
2024-03-01 13:16:51 +01:00
2023-11-28 16:54:50 +00:00
2023-09-19 12:20:12 +02:00
2020-12-30 11:52:56 +01:00
2023-09-19 12:20:24 +02:00
2020-08-11 11:58:31 +10:00
2024-02-23 08:41:59 +01:00
2023-09-19 12:20:11 +02:00
2024-02-23 08:42:12 +01:00
2023-01-14 10:16:20 +01:00
2022-09-28 11:10:39 +02:00
2022-09-28 11:10:33 +02:00
2020-08-06 14:27:31 -07:00
2020-09-11 10:54:17 +02:00
2024-01-15 18:48:03 +01:00
2022-11-25 17:45:40 +01:00
2023-01-14 10:16:37 +01:00
2023-05-17 11:47:42 +02:00
2022-08-21 15:15:41 +02:00
2023-12-20 15:44:31 +01:00
2023-04-05 11:23:44 +02:00
2022-04-08 14:39:56 +02:00
2024-02-23 08:42:32 +01:00
2023-03-11 16:39:30 +01:00
2024-03-01 13:16:50 +01:00
2023-03-11 16:39:52 +01:00
2024-02-23 08:42:01 +01:00
2023-04-20 12:10:24 +02:00
2022-10-26 13:25:24 +02:00
2024-01-15 18:48:07 +01:00
2024-01-25 14:37:48 -08:00
2023-06-09 10:30:18 +02:00
2023-12-08 08:46:08 +01:00
2020-08-23 17:36:59 -05:00
2021-07-19 09:44:40 +02:00
2020-09-01 13:02:33 +05:30
2023-01-14 10:16:20 +01:00
2022-06-09 10:21:27 +02:00
2023-07-27 08:43:46 +02:00
2023-09-19 12:20:12 +02:00
2024-02-23 08:41:59 +01:00
2022-06-09 10:21:28 +02:00
2023-09-23 11:01:09 +02:00
2023-08-11 11:57:53 +02:00
2020-12-30 11:52:56 +01:00
2022-10-26 13:25:10 +02:00
2021-11-18 14:04:02 +01:00
2022-01-27 10:53:49 +01:00
2023-03-11 16:39:32 +01:00
2023-05-17 11:47:38 +02:00
2020-08-23 17:36:59 -05:00
2023-03-11 16:40:20 +01:00
2023-03-11 16:39:30 +01:00
2023-10-25 11:54:13 +02:00
2021-04-21 13:00:52 +02:00
2023-09-19 12:20:13 +02:00
2021-07-19 09:44:36 +02:00
2023-07-27 08:44:29 +02:00
2023-06-14 11:10:00 +02:00
2023-07-27 08:44:33 +02:00
2021-09-18 13:40:19 +02:00
2020-08-26 19:11:41 +02:00
2022-10-26 13:25:24 +02:00
2020-08-23 17:36:59 -05:00
2020-09-10 08:17:48 +02:00
2023-07-27 08:44:35 +02:00
2020-08-17 13:41:50 -04:00
2023-10-25 11:54:22 +02:00
2022-07-02 16:39:23 +02:00
2023-10-25 11:54:22 +02:00
2024-01-25 14:37:38 -08:00
2020-09-01 09:45:44 +02:00
2021-09-18 13:40:19 +02:00
2020-12-30 11:54:19 +01:00
2022-12-02 17:39:57 +01:00
2022-10-26 13:25:50 +02:00
2023-11-08 17:30:41 +01:00
2024-01-25 14:37:47 -08:00
2023-03-11 16:40:07 +01:00
2023-05-17 11:47:29 +02:00
2024-02-23 08:42:11 +01:00
2023-03-11 16:39:29 +01:00
2024-02-23 08:42:11 +01:00
2020-09-10 08:17:48 +02:00
2023-08-16 18:20:59 +02:00
2020-09-08 10:43:30 +02:00
2023-07-27 08:43:45 +02:00
2022-09-15 11:32:02 +02:00
2022-11-25 17:45:44 +01:00
2021-09-03 10:09:27 +02:00
2022-10-26 13:25:48 +02:00
2022-07-02 16:39:23 +02:00
2021-09-18 13:40:19 +02:00
2020-09-21 10:45:08 +02:00
2022-08-21 15:15:38 +02:00
2024-02-23 08:42:11 +01:00
2023-03-11 16:39:29 +01:00
2020-08-17 13:41:50 -04:00
2021-09-30 10:11:04 +02:00
2021-09-15 09:50:32 +02:00
2023-10-25 11:54:24 +02:00
2020-08-16 17:12:18 +02:00
2021-11-18 14:04:22 +01:00
2024-02-23 08:41:59 +01:00
2022-09-15 11:32:02 +02:00
2023-05-17 11:47:38 +02:00
2024-03-01 13:16:51 +01:00
2023-10-25 11:54:22 +02:00
2020-08-06 11:55:43 -07:00
2020-09-14 22:37:31 +03:00
2022-10-26 13:25:25 +02:00
2020-09-09 16:39:48 +02:00