Xiongfeng Wang
88c6e0995c
drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
...
[ Upstream commit 725a521a18734f65de05b8d353b5bd0d3ca4c37a ]
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 radeon_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: d8ade3526b ("drm/radeon: handle non-VGA class pci devices with ATRM")
Fixes: c61e277587 ("drm/radeon: split ATRM support out from the ATPX handler (v3)")
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 >
2022-12-31 13:14:14 +01:00
..
2022-08-17 14:23:22 +02:00
2020-04-30 16:48:42 -04:00
2020-11-16 15:56:34 -05:00
2021-02-17 12:52:59 +01:00
2021-04-27 18:43:42 -04:00
2022-02-23 12:03:08 +01:00
2019-12-18 16:09:13 -05:00
2021-08-02 17:21:25 -04:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2020-11-24 12:05:42 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2020-11-16 15:56:35 -05:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2021-08-05 21:18:00 -04:00
2021-05-25 23:47:24 -04:00
2022-08-17 14:23:22 +02:00
2020-11-13 00:11:53 -05:00
2019-06-10 22:30:24 +02:00
2022-08-17 14:23:22 +02:00
2020-11-16 15:56:34 -05:00
2022-08-17 14:23:17 +02:00
2020-11-16 15:56:34 -05:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:34 -05:00
2021-05-13 10:45:15 -04:00
2019-06-10 22:30:24 +02:00
2021-08-05 21:18:00 -04:00
2019-12-03 16:26:59 -05:00
2021-08-02 17:21:25 -04:00
2021-06-22 16:51:45 -04:00
2021-06-22 16:51:45 -04:00
2021-06-22 16:51:45 -04:00
2021-04-09 16:44:26 -04:00
2020-11-16 15:56:34 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2020-11-16 15:56:35 -05:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:33 -05:00
2021-05-10 15:46:50 +02:00
2021-02-18 16:43:09 -05:00
2021-05-25 23:47:30 -04:00
2021-05-10 18:06:45 -04:00
2020-11-16 15:56:34 -05:00
2019-05-30 11:29:21 -07:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:33 -05:00
2019-08-13 09:09:30 +02:00
2022-12-31 13:14:14 +01:00
2019-12-05 08:44:28 +01:00
2021-01-06 15:43:46 +01:00
2022-06-14 18:36:23 +02:00
2021-06-10 11:28:09 +10:00
2020-05-19 22:31:34 +01:00
2022-09-15 11:30:01 +02:00
2020-11-16 15:56:33 -05:00
2021-07-01 00:05:18 -04:00
2019-06-10 22:30:24 +02:00
2021-05-27 15:30:59 -04:00
2021-08-10 20:13:49 +02:00
2020-11-13 00:03:49 -05:00
2020-11-16 15:56:34 -05:00
2021-08-16 16:14:12 -04:00
2021-08-02 17:21:25 -04:00
2021-05-19 22:32:24 -04:00
2021-11-18 19:17:08 +01:00
2021-01-06 15:43:46 +01:00
2021-02-18 16:43:10 -05:00
2021-08-10 20:13:49 +02:00
2022-01-27 11:05:19 +01:00
2021-08-10 20:13:49 +02:00
2020-02-13 13:08:14 +01:00
2021-01-06 15:43:46 +01:00
2020-11-16 15:56:33 -05:00
2019-11-19 10:12:54 -05:00
2021-06-06 11:19:51 +02:00
2021-02-18 16:43:10 -05:00
2021-06-30 11:56:21 +02:00
2021-06-30 11:56:21 +02:00
2021-06-02 11:07:25 +02:00
2020-11-16 15:56:33 -05:00
2021-06-22 15:29:03 +02:00
2020-11-16 15:56:35 -05:00
2021-02-18 16:43:10 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2021-06-06 11:18:19 +02:00
2019-08-06 08:21:54 +02:00
2019-06-10 22:30:24 +02:00
2021-06-02 11:07:25 +02:00
2021-06-30 11:56:21 +02:00
2021-05-26 20:56:29 +02:00
2019-06-10 22:30:24 +02:00
2021-06-10 13:47:13 +10:00
2021-02-18 16:43:09 -05:00
2021-08-02 17:21:25 -04:00
2021-06-22 16:51:45 -04:00
2021-06-22 16:51:45 -04:00
2021-08-05 21:18:00 -04:00
2021-06-22 16:51:45 -04:00
2021-01-06 15:43:46 +01:00
2019-06-10 22:30:24 +02:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2019-08-13 09:09:30 +02:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2021-08-05 21:18:00 -04:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2021-05-19 22:29:40 -04:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:35 -05:00
2021-05-13 10:45:29 -04:00
2020-10-27 17:43:42 -04:00
2020-11-13 00:12:30 -05:00
2020-11-13 00:12:30 -05:00
2020-11-16 15:56:35 -05:00
2019-06-10 22:30:24 +02:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00
2019-06-10 22:30:24 +02:00
2020-09-22 17:37:38 -04:00
2021-02-18 16:43:09 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00