]> 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)
commitcbf1c73248924543d5239b3f572a2b9a5b471b67
treedfd484833c31424952dba998c183c1491929ad60
parent73dfe4546dcf086d4623b6c66443a1346391bd07
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