[COMMON] iommu/exynos: fix prevent issue
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Fri, 13 Apr 2018 04:09:05 +0000 (13:09 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:05 +0000 (14:39 +0900)
This patch fixed BITSHIFT_MIGHT_OVERFLOW issue that was detected by
prevent.

Change-Id: I59d662f3d2d3e671cacd51349253ff8871b1e8f3
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/iommu/exynos-iommu-reg.h

index 744cc713caff1687727245ebf45bf1031ec586f2..f1cc558f9d2bd5ef5a580ec569170cf2da62c0b7 100644 (file)
@@ -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;