From: Janghyuck Kim Date: Fri, 13 Apr 2018 04:09:05 +0000 (+0900) Subject: [COMMON] iommu/exynos: fix prevent issue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78324526f9bf11d55c52c28bc781f2fafc7293a5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] iommu/exynos: fix prevent issue This patch fixed BITSHIFT_MIGHT_OVERFLOW issue that was detected by prevent. Change-Id: I59d662f3d2d3e671cacd51349253ff8871b1e8f3 Signed-off-by: Janghyuck Kim --- diff --git a/drivers/iommu/exynos-iommu-reg.h b/drivers/iommu/exynos-iommu-reg.h index 744cc713caff..f1cc558f9d2b 100644 --- a/drivers/iommu/exynos-iommu-reg.h +++ b/drivers/iommu/exynos-iommu-reg.h @@ -126,7 +126,7 @@ static inline void sysmmu_sbb_compare(u32 sbb_vpn, u32 sbb_link, phys_addr_t pgtable) { sysmmu_pte_t *entry; - unsigned long vaddr = MMU_VADDR_FROM_SBB(sbb_vpn); + unsigned long vaddr = MMU_VADDR_FROM_SBB((unsigned long)sbb_vpn); unsigned long paddr = MMU_PADDR_FROM_SBB((unsigned long)sbb_link); unsigned long phys = 0;