]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - arch/mips/alchemy/common/dbdma.c
treewide: kmalloc() -> kmalloc_array()
[mirror_ubuntu-eoan-kernel.git] / arch / mips / alchemy / common / dbdma.c
index fc482d900dddba69eca81d08df77ccff5fb10998..24b04758cce522c57c0499db68f64a5f6ea4d453 100644 (file)
@@ -411,8 +411,8 @@ u32 au1xxx_dbdma_ring_alloc(u32 chanid, int entries)
         * and if we try that first we are likely to not waste larger
         * slabs of memory.
         */
-       desc_base = (u32)kmalloc(entries * sizeof(au1x_ddma_desc_t),
-                                GFP_KERNEL|GFP_DMA);
+       desc_base = (u32)kmalloc_array(entries, sizeof(au1x_ddma_desc_t),
+                                      GFP_KERNEL|GFP_DMA);
        if (desc_base == 0)
                return 0;