[PATCH] rtc: mt6397: check return value after calling platform_get_resource()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Thu May 5 07:55:14 PDT 2022


Il 05/05/22 14:50, Yang Yingliang ha scritto:
> It will cause null-ptr-deref if platform_get_resource() returns NULL,
> we need check the return value.
> 
> Fixes: fc2979118f3f ("rtc: mediatek: Add MT6397 RTC driver")
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>

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



More information about the linux-arm-kernel mailing list