[COMMON] soc: samsung: seclog: Change kmalloc to kmalloc_array
authorJunho Choi <junhosj.choi@samsung.com>
Wed, 14 Mar 2018 07:15:50 +0000 (16:15 +0900)
committerJunho Choi <junhosj.choi@samsung.com>
Wed, 23 May 2018 23:53:41 +0000 (08:53 +0900)
Change-Id: Iaf84105a5a5516619cd7af67842ea1a2ba4b0a92
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
drivers/soc/samsung/exynos-seclog.c

index 5e70fd14403287cd7b8cf258cf3531542c7fe7a0..4084ffde61eb969a173284b2c5c3b82beea957b3 100644 (file)
@@ -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;