Re: [PATCH 1/6] clk: mediatek: fix unregister function in mtk_clk_register_dividers cleanup

From: AngeloGioacchino Del Regno
Date: Tue Sep 27 2022 - 06:40:20 EST


Il 26/09/22 12:25, Chen-Yu Tsai ha scritto:
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: 3c3ba2ab0226 ("clk: mediatek: mtk: Implement error handling in register APIs")
Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>