Skip to content

Commit

Permalink
drm/amd/pp: Fix NULL point check error in smu_set_watermarks_for_cloc…
Browse files Browse the repository at this point in the history
…ks_ranges

It is caused by
'commit d6c9a7dc86cd ("drm/amd/pp: Move common code to smu_helper.c")'

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Rex Zhu authored and Alex Deucher committed May 15, 2018
1 parent 7fd645f commit 6197ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ int smu_set_watermarks_for_clocks_ranges(void *wt_table,
uint32_t i;
struct watermarks *table = wt_table;

if (!table || wm_with_clock_ranges)
if (!table || !wm_with_clock_ranges)
return -EINVAL;

if (wm_with_clock_ranges->num_wm_sets_dmif > 4 || wm_with_clock_ranges->num_wm_sets_mcif > 4)
Expand Down

0 comments on commit 6197ae2

Please sign in to comment.