9b5c4dfb2a
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:
|
||
---|---|---|
.. | ||
common | ||
liquidio | ||
octeon | ||
thunder | ||
Kconfig | ||
Makefile |