aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorMichal Wajdeczko <[email protected]>2025-07-22 14:10:54 +0000
committerRodrigo Vivi <[email protected]>2025-07-28 14:22:48 +0000
commit942ac8da6388c25fe62b2792c78715e0ea6e649b (patch)
tree0d9cca1d61de81c8a80686354eb0c9d7be4d8198 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc() (diff)
downloadkernel-942ac8da6388c25fe62b2792c78715e0ea6e649b.tar.gz
kernel-942ac8da6388c25fe62b2792c78715e0ea6e649b.zip
drm/xe/configfs: Fix pci_dev reference leak
We are using pci_get_domain_bus_and_slot() function to verify if the given config directory name matches any existing PCI device, but we missed to call matching pci_dev_put() to release reference. While around, also change error code in case of no device match, to make it more specific than generic formatting error. Fixes: 16280ded45fb ("drm/xe: Add configfs to enable survivability mode") Signed-off-by: Michal Wajdeczko <[email protected]> Cc: Lucas De Marchi <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]> (cherry picked from commit 0bdd05c2a82bbf2419415d012fd4f5faeca7f1af) Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions