From: Junho Choi Date: Wed, 14 Mar 2018 07:15:50 +0000 (+0900) Subject: [COMMON] soc: samsung: seclog: Change kmalloc to kmalloc_array X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f26050e8beb66bff22c550a66221996cd8ad8d3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: samsung: seclog: Change kmalloc to kmalloc_array Change-Id: Iaf84105a5a5516619cd7af67842ea1a2ba4b0a92 Signed-off-by: Junho Choi --- diff --git a/drivers/soc/samsung/exynos-seclog.c b/drivers/soc/samsung/exynos-seclog.c index 5e70fd144032..4084ffde61eb 100644 --- a/drivers/soc/samsung/exynos-seclog.c +++ b/drivers/soc/samsung/exynos-seclog.c @@ -55,7 +55,7 @@ static void *exynos_seclog_request_region(unsigned long addr, if (!addr) return NULL; - pages = kmalloc(sizeof(struct page *) * num_pages, GFP_ATOMIC); + pages = kmalloc_array(num_pages, sizeof(struct page *), GFP_ATOMIC); if (!pages) return NULL;