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:Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by:
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/YMtYs7LVveYH4eRe@mwandaSigned-off-by:
Geert Uytterhoeven <geert+renesas@glider.be>
Showing
Please register or sign in to comment