]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix null pointer dereference
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 22 Jan 2024 09:38:23 +0000 (17:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jan 2024 22:13:28 +0000 (17:13 -0500)
commit9bfb1a538a252cc6764dec1eb3697aac71eaec7f
tree10065b77a1e202b298d925dc4eae22960e3b3809
parent2866a4549cf434ae8bec1efec439726562d7863c
drm/amdgpu: Fix null pointer dereference

amdgpu_reg_state_sysfs_fini could be invoked at the
time when asic_func is even not initialized, i.e.,
amdgpu_discovery_init fails for some reason.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/amdgpu_reg_state.h