Re: [PATCH] drm/msm/dsi: clear the DMA buffer pointer after freeing it

From: Dmitry Baryshkov

Date: Fri Nov 27 2026 - 14:58:39 EST


On Fri, Nov 13, 2026 at 03:08:02PM +0000, Michael McAllister wrote:
> The DSI host survives component unbind. On DSI v2, freeing the command
> buffer leaves tx_buf pointing at freed memory. If a later bind fails
> before allocating a new buffer, another unbind can free it again.
>
> Clear tx_buf after freeing it, as we already do for tx_gem_obj.
>
> Fixes: 5e05be782645 ("drm/msm/dsi: free TX buffer in unbind")
> Cc: stable@xxxxxxxxxxxxxxx
> Link: https://sashiko.dev/#/bug/linux-6f5085d3-ef49-482c-86e4-a2438bc1b91f
> Signed-off-by: Michael McAllister <me@xxxxxxxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry