diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-12-29 11:25:33 +0400 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-01-12 20:04:38 +0100 |
commit | ccb32e2be14271a60e9ba89c6d5660cc9998773c (patch) | |
tree | 256620d7c17091b6190c6b06b1da074426f1ba86 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
parent | 6aa5207838ccf79879f212034435a5606f890eea (diff) |
platform/x86/amd: Fix refcount leak in amd_pmc_probe
pci_get_domain_bus_and_slot() takes reference, the caller should release
the reference by calling pci_dev_put() after use. Call pci_dev_put() in
the error path to fix this.
Fixes: 3d7d407dfb05 ("platform/x86: amd-pmc: Add support for AMD Spill to DRAM STB feature")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20221229072534.1381432-1-linmq006@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions