From: Janghyuck Kim Date: Wed, 9 Aug 2017 05:56:52 +0000 (+0900) Subject: iommu/exynos: zero initialization for region structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=570287f6cbc04cbbb7007805634fd0f999e9a879;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git iommu/exynos: zero initialization for region structure To avoid reference the uninitialized variable in region structure, kmalloc is replaced with kzalloc. Change-Id: I9430d05b912e97521694516548e5cca61d4a40bf Signed-off-by: Janghyuck Kim Signed-off-by: ChiHun Won --- diff --git a/drivers/iommu/exynos-iovmm.c b/drivers/iommu/exynos-iovmm.c index 07c449f4fe63..5fde22ac2788 100644 --- a/drivers/iommu/exynos-iovmm.c +++ b/drivers/iommu/exynos-iovmm.c @@ -188,7 +188,7 @@ static dma_addr_t add_iovm_region(struct exynos_iovmm *vmm, { struct exynos_vm_region *region, *pos; - region = kmalloc(sizeof(*region), GFP_KERNEL); + region = kzalloc(sizeof(*region), GFP_KERNEL); if (!region) return 0;