numam-dpdk/lib
Dmitriy Yakovlev e7ee2ca1c9 cfgfile: fix uninitialized variable on load error
Uninitialized scalar variable.
Using uninitialized value cfg->sections[curr_section]->num_entries
when calling rte_cfgfile_close.
And memory in variables cfg->sections[curr_section],
sect->entries[curr_entry] maybe not equal NULL.
We must decrement counters curr_section, curr_entry when failed to realloc.

Fixes: eaafbad419 ("cfgfile: library to interpret config files")

Signed-off-by: Dmitriy Yakovlev <bombermag@gmail.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2017-02-14 18:13:48 +01:00
..
librte_acl acl: fix flow data comments 2017-01-30 11:15:11 +01:00
librte_cfgfile cfgfile: fix uninitialized variable on load error 2017-02-14 18:13:48 +01:00
librte_cmdline cmdline: add alignment constraint 2016-12-23 10:19:11 +01:00
librte_compat compat: remove unneeded macro 2015-06-29 16:41:23 +02:00
librte_cryptodev cryptodev: fix crash when querying device by name 2017-02-10 15:57:29 +01:00
librte_distributor distributor: remove inclusion of mbuf header 2015-05-11 15:36:37 +02:00
librte_eal vfio: fix maximum number of interrupt for MSI-X 2017-02-13 22:25:04 +01:00
librte_efd efd: fix build by removing dependency to libmath 2017-01-30 10:58:40 +01:00
librte_ether ethdev: fix typo in UDP tunnel API description 2017-02-13 22:22:19 +01:00
librte_hash hash: fix bucket size usage 2016-10-12 18:40:52 +02:00
librte_ip_frag ip_frag: fix IP reassembly regression 2016-11-07 21:27:50 +01:00
librte_jobstats jobstats: fix typo in a comment 2016-06-30 18:51:20 +02:00
librte_kni doc: fix typos 2016-11-07 21:50:27 +01:00
librte_kvargs kvargs: make pointers in string arrays const 2017-01-13 19:28:26 +01:00
librte_lpm lpm: fix freeing memory 2016-11-06 23:46:03 +01:00
librte_mbuf mbuf: fix bitmask of Tx offload flags 2017-02-10 12:25:49 +01:00
librte_mempool mempool: fix stack handler dequeue 2017-01-29 23:38:33 +01:00
librte_meter meter: fix excess token bucket update in srtcm 2016-09-21 22:56:03 +02:00
librte_net ethdev: add Tx preparation 2017-01-04 20:40:15 +01:00
librte_pdump pdump: fix coverage warning 2017-01-30 17:04:46 +01:00
librte_pipeline lib: work around unnamed structs/unions 2016-09-13 15:35:28 +02:00
librte_port port: support file descriptor 2016-10-13 11:42:37 +02:00
librte_power examples/vm_power_manager: remove dependency on internal header 2016-07-11 17:23:32 +02:00
librte_reorder lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
librte_ring doc: fix typos in code comments 2016-12-06 15:25:01 +01:00
librte_sched sched: fix crash when freeing port 2017-02-09 18:46:52 +01:00
librte_table acl: allow zero verdict 2017-01-30 11:08:47 +01:00
librte_timer timer: fix lag delay 2016-10-05 12:02:53 +02:00
librte_vhost vhost: remove unneeded variable assignment 2017-01-30 13:47:20 +01:00
Makefile efd: new Elastic Flow Distributor library 2017-01-18 20:53:28 +01:00