Re: [PATCH] drm/msm/dp: Free resources after unregistering them

From: Dmitry Baryshkov
Date: Thu Jun 15 2023 - 07:31:42 EST



On Mon, 12 Jun 2023 15:02:59 -0700, Bjorn Andersson wrote:
> The DP component's unbind operation walks through the submodules to
> unregister and clean things up. But if the unbind happens because the DP
> controller itself is being removed, all the memory for those submodules
> has just been freed.
>
> Change the order of these operations to avoid the many use-after-free
> that otherwise happens in this code path.
>
> [...]

Applied, thanks!

[1/1] drm/msm/dp: Free resources after unregistering them
https://gitlab.freedesktop.org/lumag/msm/-/commit/fa0048a4b1fa

Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>