Skip to content

Commit

Permalink
drm/amd/pm: check specific index for smu13
Browse files Browse the repository at this point in the history
[ Upstream commit a3ac9d1 ]

Check for specific indexes that may be invalid values.

Signed-off-by: Jesse Zhang <[email protected]>
Suggested-by: Tim Huang <[email protected]>
Reviewed-by: Tim Huang <[email protected]>
Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Jie1zhang authored and gregkh committed Sep 8, 2024
1 parent f8e484c commit 0312bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,8 @@ static int smu_v13_0_6_mode2_reset(struct smu_context *smu)

index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
SMU_MSG_GfxDeviceDriverReset);
if (index < 0)
return index;

mutex_lock(&smu->message_lock);

Expand Down

0 comments on commit 0312bf1

Please sign in to comment.