[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <70836806-5228-4b32-be97-f00a476bbe47@linaro.org>
Date: Thu, 23 Nov 2023 12:37:33 +0100
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Kunwu Chan <chentao@...inos.cn>, robdclark@...il.com,
quic_abhinavk@...cinc.com, dmitry.baryshkov@...aro.org,
sean@...rly.run, marijn.suijten@...ainline.org, airlied@...il.com,
daniel@...ll.ch, jordan@...micpenguin.net
Cc: kunwu.chan@...mail.com, linux-arm-msm@...r.kernel.org,
dri-devel@...ts.freedesktop.org, freedreno@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/msm/gpu: Fix null-pointer dereference in
zap_shader_load_mdt
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@...inos.cn>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@...aro.org>
Konrad
Powered by blists - more mailing lists