Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm: fix null pointer dereference issue in smu_v15_0_8_get_power_limit()

Fix null pointer issues caused by coding errors

Fixes: e20e47bcb3f1 ("drm/amd/pm: add set{get}_power_limit support for smu 15.0.8")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yang Wang and committed by
Alex Deucher
95e21dff 592713a8

+1 -1
+1 -1
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c
··· 1785 1785 *current_power_limit = power_limit; 1786 1786 1787 1787 if (default_power_limit) 1788 - *max_power_limit = pptable->MaxSocketPowerLimit; 1788 + *default_power_limit = pptable->MaxSocketPowerLimit; 1789 1789 1790 1790 if (max_power_limit) 1791 1791 *max_power_limit = pptable->MaxSocketPowerLimit;