]> git.baikalelectronics.ru Git - kernel.git/commit
net: pxa168_eth: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 12:32:14 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:10 +0000 (13:55 -0400)
commitcbee49b169733490fc9c84af426844245c8c9cf5
treedfd484833c31424952dba998c183c1491929ad60
parent111408cae1c0e14161d87558907eb3b5ea089f09
net: pxa168_eth: Use kcalloc() in two functions

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kcalloc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c