aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-03-29 06:07:18 +0000
committerMika Westerberg <[email protected]>2021-03-30 10:37:32 +0000
commitbec4d7c93afc07dd0454ae41c559513f858cfb83 (patch)
treeb206c281fd199c20afd9c0e9ed2aa3ab5f0e7af7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
parentLinux 5.12-rc5 (diff)
downloadkernel-bec4d7c93afc07dd0454ae41c559513f858cfb83.tar.gz
kernel-bec4d7c93afc07dd0454ae41c559513f858cfb83.zip
thunderbolt: Fix a leak in tb_retimer_add()
After the device_register() succeeds, then the correct way to clean up is to call device_unregister(). The unregister calls both device_del() and device_put(). Since this code was only device_del() it results in a memory leak. Fixes: dacb12877d92 ("thunderbolt: Add support for on-board retimers") Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions