[Public]
Acked-by: Alex Deucher
From: Ma, Jun
Sent: Friday, January 12, 2024 1:26 AM
To: amd-gfx@lists.freedesktop.org ; Koenig,
Christian ; Deucher, Alexander
Cc: Ma, Jun
Subject: [PATCH] drm/amdgpu: Fix the null pointer when load rlc firmware
If the RLC
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
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 15 +++