[PATCH 1/2][next][V2] Fix dereference of pointer minor before null check
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Thu Jul 31 09:21:12 UTC 2025
On 7/31/25 10:18 AM, Colin Ian King wrote:
> Currently the pointer minor is being dereferenced before it is null
> checked, leading to a potential null pointer dereference issue. Fix this
> by dereferencing the pointer only after it has been null checked.
>
> Fixes: 4f89cf40d01e ("drm/msm: bail out late_init_minor() if it is not a GPU device")
> Signed-off-by: Colin Ian King <colin.i.king at gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio at oss.qualcomm.com>
Konrad
More information about the dri-devel
mailing list