linux/drivers/gpu/drm/amd
Xiongfeng Wang ca54639c77 drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
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: d38ceaf99e ("drm/amdgpu: add core driver (v4)")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-29 11:03:39 -05:00
..
acp
amdgpu drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios() 2022-11-29 11:03:39 -05:00
amdkfd drm/amdkfd: Remove unnecessary condition in kfd_topology_add_device() 2022-11-29 11:03:37 -05:00
display drm/amd/display: Fix DTBCLK disable requests and SRC_SEL programming 2022-11-29 11:03:38 -05:00
include drm/amdgpu: add missing license to some files 2022-11-23 10:31:31 -05:00
pm swsmu/amdgpu_smu: Fix the wrong if-condition 2022-11-29 11:03:37 -05:00