Re: [PATCH 06/10] drm/msm: fix vram leak on bind errors

From: Dmitry Baryshkov
Date: Fri Mar 24 2023 - 18:06:40 EST


On Mon, 6 Mar 2023 at 12:09, Johan Hovold <johan+linaro@xxxxxxxxxx> wrote:
>
> Make sure to release the VRAM buffer also in a case a subcomponent fails
> to bind.
>
> Fixes: d863f0c7b536 ("drm/msm: Call msm_init_vram before binding the gpu")
> Cc: stable@xxxxxxxxxxxxxxx # 5.11
> Cc: Craig Tatlor <ctatlor97@xxxxxxxxx>
> Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
> ---
> drivers/gpu/drm/msm/msm_drv.c | 26 +++++++++++++++++++-------
> 1 file changed, 19 insertions(+), 7 deletions(-)

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


--
With best wishes
Dmitry