Skip to content
Commit 36aaa3a0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Geert Uytterhoeven
Browse files

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: ef3c613c ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/YMtYs7LVveYH4eRe@mwanda


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 97c29755
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment