aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/rbtree.py
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2021-04-07 02:06:06 +0300
committerStephen Boyd <[email protected]>2021-04-07 16:01:25 -0700
commit50ce6826a48f119baf2794fa384a64efe9bd84a5 (patch)
treea4c3ef684fff6552015fb03fd6742ca5e2f01f0c /scripts/gdb/linux/rbtree.py
parent7045465500e465b09f09d6e5bdc260a9f1aab97b (diff)
clk: fixed: fix double free in resource managed fixed-factor clock
devm_clk_hw_register_fixed_factor_release(), the release function for the devm_clk_hw_register_fixed_factor(), calls clk_hw_unregister_fixed_factor(), which will kfree() the clock. However after that the devres functions will also kfree the allocated data, resulting in double free/memory corruption. Just call clk_hw_unregister() instead, leaving kfree() to devres code. Reported-by: Rob Clark <[email protected]> Cc: Daniel Palmer <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 0b9266d295ce ("clk: fixed: add devm helper for clk_hw_register_fixed_factor()") [[email protected]: Remove ugly cast] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/rbtree.py')
0 files changed, 0 insertions, 0 deletions