Skip to content
Snippets Groups Projects
Commit 93ee4b7d authored by Kees Cook's avatar Kees Cook
Browse files

pstore/ram: Avoid needless alloc during header write


Since the header is a fixed small maximum size, just use a stack variable
to avoid memory allocation in the write path.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 47afd7ae
No related branches found
No related tags found
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