drm/amd/pp: Fix NULL point check error in smu_set_watermarks_for_clocks_ranges
Subsystems (2)
PATCH 1/1 drm/amd/pp: Fix NULL point check error in smu_set_watermarks_for_clocks_ranges
It is caused by
'commit d6c9a7dc86cd ("drm/amd/pp: Move common code to smu_helper.c")'
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c +1 -1
@@ -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 )
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1524113267-23610-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Quan, Evan
Reviewed-by Evan QuanQuoted 37 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Thursday, April 19, 2018 12:48 PM
To: [email protected]
Cc: Zhu, Rex <[email protected]>
Subject: [PATCH] drm/amd/pp: Fix NULL point check error insmu_set_watermarks_for_clocks_rangesIt is caused by
'commitd6c9a7dc86cd("drm/amd/pp: Move common code tosmu_helper.c")'Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c +1
-1@@ -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)
--
1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx