diff options
author | Dan Carpenter <[email protected]> | 2023-04-19 17:23:01 +0300 |
---|---|---|
committer | Abel Vesa <[email protected]> | 2023-05-18 18:04:18 +0300 |
commit | 632c60ecd25dbacee54d5581fe3aeb834b57010a (patch) | |
tree | 614f1e3db326400ea9e57c658ade9ce38481d6aa /drivers/usb/cdns3 | |
parent | 6077af232cf58bfa4203c2364f99e0218aac7667 (diff) |
clk: imx: scu: use _safe list iterator to avoid a use after free
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.
Fixes: 77d8f3068c63 ("clk: imx: scu: add two cells binding support")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Abel Vesa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abel Vesa <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions