Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: mt6397: check return value after calling platform_get_resource()
[ Upstream commit d3b43eb ] It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. Fixes: fc29791 ("rtc: mediatek: Add MT6397 RTC driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220505125043.1594771-1-yangyingliang@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information