diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-11-16 04:34:39 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-16 05:34:00 +0300 |
commit | 8e20ba2e53fc6198cbfbcc700e9f884157052a8d (patch) | |
tree | 8e9a6ff8aea2fb572ba1a3e6b964ff9eb9f7efab /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 82072962973008201b817fae1896512977dd5083 (diff) | |
download | linux-8e20ba2e53fc6198cbfbcc700e9f884157052a8d.tar.xz |
lib/xz: fix XZ_DYNALLOC to avoid useless memory reallocations
s->dict.allocated was initialized to 0 but never set after a successful
allocation, thus the code always thought that the dictionary buffer has
to be reallocated.
Link: http://lkml.kernel.org/r/20191104185107.3b6330df@tukaani.org
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Reported-by: Yu Sun <yusun2@cisco.com>
Acked-by: Daniel Walker <danielwa@cisco.com>
Cc: "Yixia Si (yisi)" <yisi@cisco.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions