[PATCH] rtc: mt6397: Fix potential NULL dereference in mtk_rtc_probe

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Apr 5 06:28:05 PDT 2022


Il 04/04/22 15:25, Miaoqian Lin ha scritto:
> platform_get_resource() may return NULL, add proper check to
> avoid potential NULL dereferencing.
> 
> Fixes: fc2979118f3f ("rtc: mediatek: Add MT6397 RTC driver")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the Linux-mediatek mailing list