drm/amdgpu: avoid undefined return value
Subsystems (2)
PATCH 1/1 drm/amdgpu: avoid undefined return value
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1554,7 +1554,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev)struct drm_crtc *crtc;struct drm_connector *connector;struct drm_connector_list_iter iter; -int r; +int r =0 ;/* turn off display hw */ drm_modeset_lock_all (dev);
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
Regards,
Guchun
-----Original Message-----
From: Shi, Leslie <[email protected]>
Sent: Monday, May 10, 2021 5:56 PM
To: [email protected]; Deucher, Alexander <[email protected]>; Chen, Guchun <[email protected]>
Subject: [PATCH] drm/amdgpu: avoid undefined return value
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1554,7 +1554,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev)struct drm_crtc *crtc;struct drm_connector *connector;struct drm_connector_list_iter iter; -int r; +int r =0 ;/* turn off display hw */ drm_modeset_lock_all (dev);
Signature · 5 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines · Leslie Shi
Fixes a7c22df2fd07 ("drm/amdgpu: clean up non-DC suspend/resume handling")Signed-off-by Leslie Shi <[email protected]>
I think this was already fixed in:
commit e64a779ad509391dcdb3d0d4014d81e6db2ac001
Author: Victor Zhao <[email protected]> Date: Tue Apr 27 17:52:56 2021 +0800
drm/amdgpu: fix r initial values
Sriov gets suspend of IP block <dce_virtual> failed as return value was not initialized.
v2: return 0 directly to align original code semantic before this was broken out into a separate helper function instead of setting initial values
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-2@@ -1554,7 +1554,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev)struct drm_crtc *crtc;struct drm_connector *connector;struct drm_connector_list_iter iter; -int r; +int r =0 ;/* turn off display hw */ drm_modeset_lock_all (dev); --2.25.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx