Jan Blunck 408a082c4a log: fix crash after dump
In rte_log_dump_history() the log_history list is reinitialized without
resetting the log_history_size. In the next call to rte_log_add_in_history()
the log_history_size > RTE_LOG_HISTORY and the code unconditionally tries
to remove the first entry:

Program received signal SIGSEGV, Segmentation fault.
rte_log_add_in_history (
    buf=buf@entry=0x7f02035cd000 "[snip]\n", size=size@entry=86)
    at /usr/src/packages/BUILD/lib/librte_eal/common/eal_common_log.c:122

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-06-22 18:46:46 +02:00
..
2015-02-26 00:08:25 +01:00
2015-03-10 12:17:31 +01:00
2015-06-12 11:10:10 +02:00
2015-06-12 11:10:10 +02:00
2015-06-22 18:46:46 +02:00
2015-03-10 12:15:14 +01:00
2014-11-25 13:30:23 +01:00
2014-11-25 13:30:23 +01:00
2015-02-26 00:08:25 +01:00
2015-02-24 20:22:24 +01:00
2015-06-19 16:24:48 +02:00