]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/pm: fix error flow in sensor fetching
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Aug 2023 16:21:32 +0000 (12:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:20:36 +0000 (15:20 -0400)
commita5600853167aeba5cade81f184a382a0d1b14641
treeb80009b1a57343e86c986a03be352db67adf21e5
parent7caebc8f99b29b590bd4e8c42a35a4fb593d4f29
drm/amd/pm: fix error flow in sensor fetching

Sensor fetching functions should return an signed int to
handle errors properly.

Reviewed-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reported-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c