Skip to content
Commit 20f7a0db authored by Chen-Yu Tsai's avatar Chen-Yu Tsai
Browse files

clk: mediatek: fix unregister function in mtk_clk_register_dividers cleanup



When the cleanup paths for the various clk register APIs in the MediaTek
clk library were added, the one in the dividers type used the wrong type
of unregister function. This would result in incorrect dereferencing of
the clk pointer and freeing of invalid pointers.

Fix this by switching to the correct type of clk unregistration call.

Fixes: 3c3ba2ab ("clk: mediatek: mtk: Implement error handling in register APIs")
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220926102523.2367530-2-wenst@chromium.org


Signed-off-by: default avatarChen-Yu Tsai <wenst@chromium.org>
parent 116151bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment