aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-10-24 08:00:53 +0300
committerStephen Boyd <[email protected]>2023-10-24 11:29:41 -0700
commitbd54ccc0f147019dac38e7841876a7415459b875 (patch)
tree60d5268f3d27d85322d2c448b12d424defa794d4 /lib/test_fortify/write_overflow-memcpy.c
parent0d6e24b422a2166a9297a8286ff2e6ab9a5e8cd3 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions