Files
linux/drivers/gpu/drm
Konrad Dybcio 46d4efcccc drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails
Calling a6xx_destroy() before adreno_gpu_init() leads to a null pointer
dereference on:

msm_gpu_cleanup() : platform_set_drvdata(gpu->pdev, NULL);

as gpu->pdev is only assigned in:

a6xx_gpu_init()
|_ adreno_gpu_init
    |_ msm_gpu_init()

Instead of relying on handwavy null checks down the cleanup chain,
explicitly de-allocate the LLC data and free a6xx_gpu instead.

Fixes: 76efc2453d ("drm/msm/gpu: Fix crash during system suspend after unbind")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/588919/
Signed-off-by: Rob Clark <robdclark@chromium.org>
2024-05-04 09:41:54 -07:00
..
2023-11-27 13:56:32 -06:00
2023-11-27 13:56:32 -06:00
2024-01-18 21:10:41 +01:00
2023-11-15 10:56:44 +01:00
2024-02-26 11:41:07 +01:00
2024-02-26 11:41:07 +01:00
2024-02-26 11:41:07 +01:00
2024-02-28 12:18:07 +01:00
2024-02-26 11:41:07 +01:00