[Freedreno] [PATCH] drm/msm/gpu: Fix null-pointer dereference in zap_shader_load_mdt
Konrad Dybcio
konrad.dybcio at linaro.org
Thu Nov 23 11:37:33 UTC 2023
On 11/23/23 04:33, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.
>
> Fixes: a9e2559c931d ("drm/msm/gpu: Move zap shader loading to adreno")
> Signed-off-by: Kunwu Chan <chentao at kylinos.cn>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio at linaro.org>
Konrad
More information about the Freedreno
mailing list