Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment