[PATCH v2] drm/msm/dpu: check dpu_plane_atomic_print_state() for valid sspp

Stephen Boyd swboyd at chromium.org
Thu Dec 12 19:44:08 UTC 2024


Quoting Abhinav Kumar (2024-12-11 11:50:26)
> Similar to the r_pipe sspp protect, add a check to protect
> the pipe state prints to avoid NULL ptr dereference for cases when
> the state is dumped without a corresponding atomic_check() where the
> pipe->sspp is assigned.
>
> Fixes: 31f7148fd370 ("drm/msm/dpu: move pstate->pipe initialization to dpu_plane_atomic_check")
> Reported-by: Stephen Boyd <swboyd at chromium.org>
> Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/67
> Signed-off-by: Abhinav Kumar <quic_abhinavk at quicinc.com>
> ---

Tested-by: Stephen Boyd <swboyd at chromium.org> # sc7180-trogdor


More information about the Freedreno mailing list