Re: [PATCH] clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data

From: AngeloGioacchino Del Regno
Date: Thu Sep 07 2023 - 13:31:19 EST


Il 01/09/23 04:46, Jiasheng Jiang ha scritto:
Add the check for the return value of mtk_alloc_clk_data() in order to
avoid NULL pointer dereference.

Fixes: e9862118272a ("clk: mediatek: Add MT2701 clock support")
Signed-off-by: Jiasheng Jiang <jiasheng@xxxxxxxxxxx>

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