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

If SMU is disabled, during RAS initialization,
there will be null pointer dereference issue here.

Signed-off-by: Jinzhou Su <jinzhou.su@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jinzhou Su and committed by
Alex Deucher
1197366c e698127e

+3
+3
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
··· 619 619 struct smu_context *smu = adev->powerplay.pp_handle; 620 620 int ret = -EOPNOTSUPP; 621 621 622 + if (!smu) 623 + return ret; 624 + 622 625 if (smu->ppt_funcs && smu->ppt_funcs->ras_send_msg) 623 626 ret = smu->ppt_funcs->ras_send_msg(smu, msg, param, read_arg); 624 627