Dan Carpenter
bd54ccc0f1
clk: mediatek: fix double free in mtk_clk_register_pllfh()
...
The mtk_clk_register_pll_ops() currently frees the "pll" parameter.
The function has two callers, mtk_clk_register_pll() and
mtk_clk_register_pllfh(). The first one, the _pll() function relies on
the free, but for the second _pllfh() function it causes a double free
bug.
Really the frees should be done in the caller because that's where
the allocation is.
Fixes: d7964de8a8ea ("clk: mediatek: Add new clock driver to handle FHCTL hardware")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/cd7fa365-28cc-4c34-ac64-6da57c98baa6@moroto.mountain
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2023-10-24 11:29:41 -07:00
..
2022-09-26 11:13:09 +08:00
2023-06-08 18:39:29 -07:00
2023-01-30 16:45:01 -08:00
2023-04-10 16:57:12 -07:00
2023-03-13 11:46:23 -07:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:16:38 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:10 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:14 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:15 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-10-18 18:15:15 -07:00
2023-07-19 13:13:16 -07:00
2023-10-18 18:15:15 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-08-30 19:53:39 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-03-13 11:50:18 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-06-12 18:20:04 -07:00
2023-01-30 16:45:10 -08:00
2023-10-24 11:29:41 -07:00
2022-11-29 14:43:07 +08:00
2023-04-25 11:50:08 -07:00
2023-03-13 11:46:23 -07:00
2023-05-10 14:16:03 -07:00
2023-03-31 11:51:22 -07:00
2022-09-26 11:13:09 +08:00
2022-06-15 17:24:13 -07:00