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

2023-06-15 Thread Dmitry Baryshkov
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 fre

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

2023-06-15 Thread Dmitry Baryshkov
On 13/06/2023 01:02, 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 o

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

2023-06-12 Thread Bjorn Andersson
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