summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-versaclock5.c
diff options
context:
space:
mode:
authorBjorn Andersson <quic_bjorande@quicinc.com>2023-06-13 01:02:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-27 09:43:54 +0300
commitc67a55f7cc8d767d624235bf1bcd0947e56abe0f (patch)
tree5a460393830d6aebe8f4448fee156548fe02a8f0 /drivers/clk/clk-versaclock5.c
parentc3b63584d8c2aae2ff1d4f7cd0aa860568bfefcf (diff)
downloadlinux-c67a55f7cc8d767d624235bf1bcd0947e56abe0f.tar.xz
drm/msm/dp: Free resources after unregistering them
[ Upstream commit fa0048a4b1fa7a50c8b0e514f5b428abdf69a6f8 ] 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. Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/542166/ Link: https://lore.kernel.org/r/20230612220259.1884381-1-quic_bjorande@quicinc.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk/clk-versaclock5.c')
0 files changed, 0 insertions, 0 deletions