numam-dpdk/lib
Aaron Campbell b024956a23 eal: fix invalid memory read
Valgrind reports this issue:

==29880== Invalid read of size 1
==29880==    at 0x56FF9A5: cpu_socket_id (eal_lcore.c:101)
==29880==    by 0x56FFAE9: rte_eal_cpu_init (eal_lcore.c:168)
==29880==    by 0x56F944A: rte_eal_init (eal.c:975)

The problem is that endptr points to memory allocated underneath the DIR
handle, which has already been freed. So move the closedir() call lower.

Signed-off-by: Aaron Campbell <aaron@arbor.net>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-06-27 02:38:05 +02:00
..
librte_acl eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_cfgfile eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_cmdline eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_distributor eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_eal eal: fix invalid memory read 2014-06-27 02:38:05 +02:00
librte_ether ethdev: add link state interrupt flag 2014-06-27 02:21:50 +02:00
librte_hash eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_ip_frag ip_frag: custom memmove 2014-06-26 22:51:30 +02:00
librte_ivshmem eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_kni eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_kvargs kvargs: fix build with gcc 4.5.1 2014-06-17 19:01:59 +02:00
librte_lpm eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_malloc eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_mbuf mbuf: add new packet flags for i40e 2014-06-17 18:22:02 +02:00
librte_mempool eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_meter remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_net remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pipeline eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_e1000 eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_i40e eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_ixgbe eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_pcap remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_ring eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_virtio eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_vmxnet3 eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_xenvirt eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_port port: source and sink 2014-06-17 03:34:10 +02:00
librte_power eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_ring eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_sched remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_table eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_timer remove trailing whitespaces 2014-06-11 00:29:34 +02:00
Makefile i40e: new poll mode driver 2014-06-17 18:22:19 +02:00