]> Git Repo - linux.git/commit
drm/amdgpu: Fix the null pointer when load rlc firmware
authorMa Jun <[email protected]>
Fri, 12 Jan 2024 05:33:24 +0000 (13:33 +0800)
committerAlex Deucher <[email protected]>
Mon, 15 Jan 2024 23:35:39 +0000 (18:35 -0500)
commit849e133c973ce7a2f217f699babb269b5d35bc4b
treeaa515a119418871ea766f68f9d231b4f0da0ae91
parent4e2965bd3bdd45c9d514290971f3cfff22c8b484
drm/amdgpu: Fix the null pointer when load rlc firmware

If the RLC firmware is invalid because of wrong header size,
the pointer to the rlc firmware is released in function
amdgpu_ucode_request. There will be a null pointer error
in subsequent use. So skip validation to fix it.

Signed-off-by: Ma Jun <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
This page took 0.059999 seconds and 4 git commands to generate.