[PATCH] clk: imx: scu: use _safe list iterator to avoid a use after free

Abel Vesa abel.vesa at linaro.org
Thu May 18 08:11:12 PDT 2023


On Wed, 19 Apr 2023 17:23:01 +0300, Dan Carpenter wrote:
> This loop is freeing "clk" so it needs to use list_for_each_entry_safe().
> Otherwise it dereferences a freed variable to get the next item on the
> loop.
> 
> 

Applied, thanks!

[1/1] clk: imx: scu: use _safe list iterator to avoid a use after free
      commit: 632c60ecd25dbacee54d5581fe3aeb834b57010a

Best regards,
-- 
Abel Vesa <abel.vesa at linaro.org>



More information about the linux-arm-kernel mailing list