diff options
author | 2021-06-17 17:14:11 +0300 | |
---|---|---|
committer | 2021-07-19 10:53:52 +0200 | |
commit | 36aaa3a0d9bc13e302dc146a20f022fb6891b605 (patch) | |
tree | 18a6f11e181e4a910cc6a1a69b4e663a2dfce369 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | clk: renesas: rzg2l: Fix return value and unused assignment (diff) | |
download | linux-dev-36aaa3a0d9bc13e302dc146a20f022fb6891b605.tar.xz linux-dev-36aaa3a0d9bc13e302dc146a20f022fb6891b605.zip |
clk: renesas: rzg2l: Fix a double free on error
The "pll_clk" and "clock" pointers are allocated with devm_kzalloc() so
freeing them with kfree() will lead to a double free. This would only
happen if probe failed, and the system is not bootable.
Fixes: ef3c613ccd68 ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/YMtYs7LVveYH4eRe@mwanda
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions