]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/pm: fix warning using uninitialized value of max_vid_step
authorJesse Zhang <jesse.zhang@amd.com>
Mon, 29 Apr 2024 07:26:25 +0000 (15:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 14:00:09 +0000 (10:00 -0400)
commit17e3bea65cdc453695b2fe4ff26d25d17f5339e9
treebfbb225750b35bde91180888825eccc122f02048
parentf9d8c5c7855d8f3e4c3e678777d02a49046eafb0
drm/amd/pm: fix warning using uninitialized value of max_vid_step

Check the return of pp_atomfwctrl_get_Voltage_table_v4
as it may fail to initialize max_vid_step
V2: change the check condition (Tim Huang)

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c