]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: stmmac: Use kcalloc() instead of kmalloc_array()
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 22 Jul 2019 08:39:31 +0000 (10:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 01:23:32 +0000 (18:23 -0700)
commitec5e5ce1e18b44d0c4779619de3552e0afa5a11d
treecd08fe8d25dbec45c7110dd78f49763de2535512
parentcbcf0999ae33e7a8e1dba7ca935556634f679ccf
net: stmmac: Use kcalloc() instead of kmalloc_array()

We need the memory to be zeroed upon allocation so use kcalloc()
instead.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c