OpenCloudOS-Kernel/drivers/net/ethernet/cavium
Vadim Lomovtsev 9b5c4dfb2a net: thunderx: rework mac addresses list to u64 array
It is too expensive to pass u64 values via linked list, instead
allocate array for them by overall number of mac addresses from netdev.

This eventually removes multiple kmalloc() calls, aviod memory
fragmentation and allow to put single null check on kmalloc
return value in order to prevent a potential null pointer dereference.

Addresses-Coverity-ID: 1467429 ("Dereference null return value")
Fixes: 37c3347eb2 ("net: thunderx: add ndo_set_rx_mode callback implementation for VF")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-09 10:59:38 -04:00
..
common net: cavium: use module_pci_driver to simplify the code 2018-03-29 14:36:33 -04:00
liquidio Kbuild updates for v4.17 2018-04-03 15:51:22 -07:00
octeon ethernet: cavium: octeon: Switch to using netdev_info(). 2017-10-26 10:03:35 +09:00
thunder net: thunderx: rework mac addresses list to u64 array 2018-04-09 10:59:38 -04:00
Kconfig net: thunderx: add timestamping support 2018-01-16 14:31:14 -05:00
Makefile net: add support for Cavium PTP coprocessor 2018-01-16 14:31:14 -05:00