[PATCH] iommu/mediatek: check return value after calling platform_get_resource()

Joerg Roedel joro at 8bytes.org
Sat Nov 19 01:09:48 PST 2022


On Sat, Oct 29, 2022 at 06:35:50PM +0800, Yang Yingliang wrote:
> 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 at huawei.com>
> ---
>  drivers/iommu/mtk_iommu.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.



More information about the Linux-mediatek mailing list