Skip to content
Commit 7e8cc8dc authored by Kees Cook's avatar Kees Cook
Browse files

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: default avatarKees Cook <keescook@chromium.org>
parent 76cc9580
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment