diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-10-29 12:35:50 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-11-19 10:08:49 +0100 |
commit | 73b6924cdebc899de9b719e1319aa86c6bed4acf (patch) | |
tree | bcddab849eea92656f9c7abc46573c9592609e01 /drivers/bus/ti-sysc.c | |
parent | Linux 6.1-rc3 (diff) | |
download | linux-73b6924cdebc899de9b719e1319aa86c6bed4acf.tar.xz linux-73b6924cdebc899de9b719e1319aa86c6bed4acf.zip |
iommu/mediatek: Check return value after calling platform_get_resource()
platform_get_resource() may return NULL pointer, we need check its
return value to avoid null-ptr-deref in resource_size().
Fixes: 42d57fc58aeb ("iommu/mediatek: Initialise/Remove for multi bank dev")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20221029103550.3774365-1-yangyingliang@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/bus/ti-sysc.c')
0 files changed, 0 insertions, 0 deletions