aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-02-23 11:38:16 +0000
committerAlex Deucher <[email protected]>2024-02-27 16:06:58 +0000
commiteb4f139888f636614dab3bcce97ff61cefc4b3a7 (patch)
tree67876c5e06c752d92d98ff1daad9519a17478e2e /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parentdrm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int() (diff)
downloadkernel-eb4f139888f636614dab3bcce97ff61cefc4b3a7.tar.gz
kernel-eb4f139888f636614dab3bcce97ff61cefc4b3a7.zip
drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init()
This ensures that the memory mapped by ioremap for adev->rmmio, is properly handled in amdgpu_device_init(). If the function exits early due to an error, the memory is unmapped. If the function completes successfully, the memory remains mapped. Reported by smatch: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4337 amdgpu_device_init() warn: 'adev->rmmio' from ioremap() not released on lines: 4035,4045,4051,4058,4068,4337 Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions