]> git.baikalelectronics.ru Git - kernel.git/commit
ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()
authorXu Wang <vulab@iscas.ac.cn>
Mon, 10 Aug 2020 02:38:07 +0000 (02:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2020 17:36:08 +0000 (10:36 -0700)
commit71034387981cbfed4d3ca4463294337a86b94650
tree6b2d77718f9fa19a08745c56b1a09dc896031e4a
parent44bdcde367dd42f83331f275554bc3ba8ff9a2ab
ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "devm_kcalloc".

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c