diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-04-25 14:45:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 19:32:38 +0300 |
commit | 54c1e0e3bbcab2abe25b2874a43050ae5df87831 (patch) | |
tree | 52b445ef22d2e135233a83f57af9c1e56707aed0 /fs | |
parent | 3660db29b0305f9a1d95979c7af0f5db6ea99f5d (diff) | |
download | linux-54c1e0e3bbcab2abe25b2874a43050ae5df87831.tar.xz |
iommu/arm-smmu-v3: check return value after calling platform_get_resource()
[ Upstream commit b131fa8c1d2afd05d0b7598621114674289c2fbb ]
It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220425114525.2651143-1-yangyingliang@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions