drm/msm/a6xx: Remove state objects from list before freeing
Technically it worked as it was before, only because it was using the _safe version of the iterator. But it is sloppy practice to leave dangling pointers. Signed-off-by: NRob Clark <robdclark@chromium.org> Reviewed-by: NChia-I Wu <olvaffe@gmail.com> Reviewed-by: NAkhil P Oommen <quic_akhilpo@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/507017/ Link: https://lore.kernel.org/r/20221013225520.371226-4-robdclark@gmail.com
Showing
想要评论请 注册 或 登录