+2
−0
Loading
stable inclusion from stable-v4.19.247 commit 6ecd4d5c28408df36a1a6f0b1973f633c949ac1f category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBP72U CVE: CVE-2022-49375 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6ecd4d5c28408df36a1a6f0b1973f633c949ac1f -------------------------------- [ Upstream commit d3b43eb5 ] It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. Fixes: fc297911 ("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> Signed-off-by:
Tong Tiangen <tongtiangen@huawei.com>