[PATCH 1/3] drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Sun Oct 27 02:04:26 UTC 2024
On Mon, 14 Oct 2024 09:36:08 -0700, Douglas Anderson wrote:
> If the allocation in msm_disp_state_dump_regs() failed then
> `block->state` can be NULL. The msm_disp_state_print_regs() function
> _does_ have code to try to handle it with:
>
> if (*reg)
> dump_addr = *reg;
>
> [...]
Applied, thanks!
[3/3] drm/msm: Simplify NULL checking in msm_disp_state_dump_regs()
https://gitlab.freedesktop.org/lumag/msm/-/commit/74c374648ed0
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
More information about the Freedreno
mailing list