drm/amd/pm: check negtive return for table entries
authorJesse Zhang <jesse.zhang@amd.com>
Mon, 13 May 2024 08:01:23 +0000 (16:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:12:02 +0000 (16:12 -0400)
commitf76059fe14395b37ba8d997eb0381b1b9e80a939
tree879bb3bdd38f3f876958febf7350051cb2ac7e13
parent76cb763e6ea62e838ccc8f7a1ea4246d690fccc9
drm/amd/pm: check negtive return for table entries

Function hwmgr->hwmgr_func->get_num_of_pp_table_entries(hwmgr) returns a negative number

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Tim Huang <Tim.Huang@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/pp_psm.c