mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-13 08:04:45 +08:00
drm/amd/powerplay: set pp_num_states as 0 on error situation
Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
40b4667bab
commit
4dbda35ffa
@ -718,6 +718,8 @@ static int pp_dpm_get_pp_num_states(void *handle,
|
|||||||
struct pp_instance *pp_handle = (struct pp_instance *)handle;
|
struct pp_instance *pp_handle = (struct pp_instance *)handle;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
memset(data, 0, sizeof(*data));
|
||||||
|
|
||||||
ret = pp_check(pp_handle);
|
ret = pp_check(pp_handle);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user