]> git.baikalelectronics.ru Git - 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)
commitd8fec07ca240fb5645f882df520db5d3e660e991
treecd08fe8d25dbec45c7110dd78f49763de2535512
parent664e9c4200c18582b55d3f2a54aefa8c9635bc48
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