numam-dpdk/lib/librte_eal
Alan Carew f2c4afab58 contigmem: fix buffer overrun on unload
The maximum mount contiguous memory regions for FreeBSD is limited by
RTE_CONTIGMEM_MAX_NUM_BUFS, a pointer to each region is stored in
static void * contigmem_buffers[RTE_CONTIGMEM_MAX_NUM_BUFS]

A user can specify a greater amount via hw.contigmem.num_buffers,
while the allocation logic will prevent this allocation from occuring the logic
in contigmem_unload() will attempt to free hw.contigmem.num_buffers and an
overrun occurs.

This patch limits the freeing to a maximum of RTE_CONTIGMEM_MAX_NUM_BUFS.

Signed-off-by: Alan Carew <alan.carew@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2014-10-20 23:50:35 +02:00
..
bsdapp contigmem: fix buffer overrun on unload 2014-10-20 23:50:35 +02:00
common ixgbe: support X550 2014-10-07 17:01:08 +02:00
linuxapp mbuf: add userdata pointer field 2014-10-08 14:24:59 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00