aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorVadim Lomovtsev <Vadim.Lomovtsev@cavium.com>2018-04-09 06:24:48 -0700
committerDavid S. Miller <davem@davemloft.net>2018-04-09 10:59:38 -0400
commit9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd (patch)
tree683089621fed6136aa6e29c36d69041edcadfbd3 /net/ipv4/route.c
parentinetpeer: fix uninit-value in inet_getpeer (diff)
downloadlinux-dev-9b5c4dfb2a6390bfb0166770d0d776ce0d3cdebd.tar.xz
linux-dev-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 'net/ipv4/route.c')
0 files changed, 0 insertions, 0 deletions