diff options
author | Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com> | 2018-04-09 06:24:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-09 10:59:38 -0400 |
commit | 9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd (patch) | |
tree | 683089621fed6136aa6e29c36d69041edcadfbd3 /drivers/media/dvb-frontends/dib9000.c | |
parent | b6a37e5e25414df4b8e9140a5c6f5ee0ec6f3b90 (diff) | |
download | linux-9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd.tar.gz linux-9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd.tar.bz2 linux-9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd.zip |
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: 37c3347eb247 ("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>
Diffstat (limited to 'drivers/media/dvb-frontends/dib9000.c')
0 files changed, 0 insertions, 0 deletions