Xiongfeng Wang
981024abf5
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
...
[ Upstream commit ca54639c7752edf1304d92ff4d0c049d4efc9ba0 ]
As comment of pci_get_class() says, it returns a pci_device with its
refcount increased and decreased the refcount for the input parameter
@from if it is not NULL.
If we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we
need to call pci_dev_put() to decrease the refcount. Add the missing
pci_dev_put() to avoid refcount leak.
Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:08 +01:00
..
2023-01-18 11:40:57 +01:00
2022-12-08 11:23:01 +01:00
2023-01-18 11:40:59 +01:00
2022-08-25 11:18:26 +02:00
2023-01-18 11:40:57 +01:00
2022-11-25 17:42:16 +01:00
2022-08-25 11:17:47 +02:00
2022-12-08 11:22:57 +01:00
2023-01-18 11:40:53 +01:00
2023-01-18 11:41:06 +01:00
2023-01-18 11:40:56 +01:00
2023-01-18 11:40:55 +01:00
2023-01-18 11:40:53 +01:00
2022-10-26 13:22:46 +02:00
2022-04-15 14:18:12 +02:00
2022-07-07 17:36:49 +02:00
2022-11-25 17:42:10 +01:00
2022-09-05 10:27:45 +02:00
2023-01-18 11:40:55 +01:00
2022-06-14 18:12:00 +02:00
2022-05-12 12:23:41 +02:00
2022-12-08 11:23:00 +01:00
2022-08-25 11:17:51 +02:00
2022-10-26 13:22:41 +02:00
2022-12-14 11:30:44 +01:00
2023-01-18 11:41:08 +01:00
2022-04-15 14:17:58 +02:00
2023-01-18 11:41:04 +01:00
2022-10-26 13:22:36 +02:00
2022-12-08 11:22:58 +01:00
2022-12-08 11:23:03 +01:00
2022-08-25 11:18:13 +02:00
2022-11-25 17:42:12 +01:00
2022-10-07 09:16:55 +02:00
2022-12-08 11:23:02 +01:00
2022-11-10 17:57:50 +01:00
2023-01-18 11:41:03 +01:00
2022-12-08 11:23:04 +01:00
2023-01-18 11:40:54 +01:00
2022-11-25 17:42:15 +01:00
2022-05-09 09:03:20 +02:00
2022-08-11 12:57:53 +02:00
2022-10-26 13:22:44 +02:00
2022-12-08 11:23:01 +01:00
2023-01-18 11:41:06 +01:00
2022-10-26 13:22:31 +02:00
2022-08-25 11:17:55 +02:00
2022-10-26 13:22:42 +02:00
2022-11-25 17:42:20 +01:00
2022-12-08 11:23:06 +01:00
2023-01-18 11:41:05 +01:00
2023-01-18 11:41:07 +01:00
2022-12-08 11:22:59 +01:00
2022-08-25 11:18:26 +02:00
2022-07-07 17:36:48 +02:00
2022-12-14 11:30:46 +01:00
2022-12-08 11:23:02 +01:00
2022-08-25 11:18:00 +02:00
2022-11-10 17:57:56 +01:00
2022-11-25 17:42:14 +01:00
2022-10-26 13:22:16 +02:00
2022-06-14 18:11:50 +02:00
2023-01-18 11:40:50 +01:00
2022-11-25 17:42:03 +01:00
2023-01-18 11:41:06 +01:00
2023-01-18 11:40:58 +01:00
2023-01-18 11:40:54 +01:00
2023-01-18 11:40:50 +01:00
2022-10-26 13:22:47 +02:00
2022-04-15 14:18:32 +02:00
2022-06-14 18:11:51 +02:00
2023-01-18 11:40:59 +01:00
2023-01-18 11:41:04 +01:00
2022-08-25 11:18:02 +02:00
2022-04-27 13:50:47 +02:00
2022-10-15 07:54:38 +02:00
2022-06-14 18:11:53 +02:00
2022-12-08 11:22:59 +01:00
2022-11-10 17:57:53 +01:00
2022-11-25 17:42:14 +01:00
2022-11-25 17:42:17 +01:00
2023-01-18 11:40:50 +01:00
2022-08-25 11:17:54 +02:00
2022-12-08 11:23:02 +01:00
2022-10-26 13:22:43 +02:00
2022-11-25 17:42:18 +01:00
2022-11-25 17:42:20 +01:00
2022-12-08 11:22:57 +01:00
2022-10-26 13:23:01 +02:00
2022-09-15 12:04:52 +02:00
2022-12-08 11:23:00 +01:00
2023-01-18 11:40:49 +01:00
2022-08-25 11:18:36 +02:00
2022-10-26 13:22:25 +02:00
2022-12-14 11:30:41 +01:00
2022-08-25 11:18:33 +02:00
2022-07-21 20:59:24 +02:00
2022-04-15 14:18:35 +02:00
2022-08-25 11:18:06 +02:00
2023-01-18 11:40:57 +01:00