diff options
author | 2017-03-04 22:28:46 -0800 | |
---|---|---|
committer | 2017-03-07 14:00:57 -0800 | |
commit | 7e8cc8dce17574e432945fa75882cd401c3ef673 (patch) | |
tree | 4985e01c1ccc67b79a01a56faa6fe33dca7e99a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pstore: Replace arguments for write() API (diff) | |
download | wireguard-linux-7e8cc8dce17574e432945fa75882cd401c3ef673.tar.xz wireguard-linux-7e8cc8dce17574e432945fa75882cd401c3ef673.zip |
pstore: Always allocate buffer for decompression
Currently, pstore_mkfile() performs a memcpy() of the record contents,
so it can live anywhere. However, this is needlessly wasteful. In
preparation of pstore_mkfile() keeping the record contents, always
allocate a buffer for the contents.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions