]> asedeno.scripts.mit.edu Git - linux.git/commit
pstore/ram: Avoid needless alloc during header write
authorKees Cook <keescook@chromium.org>
Tue, 12 Feb 2019 21:09:36 +0000 (13:09 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 12 Feb 2019 21:45:53 +0000 (13:45 -0800)
commit93ee4b7d9f0632690713aee604c49e298e634094
treeb59d6703ee660577abbb1f3de464f2482a6962da
parent47afd7ae65c737bfef67e9eb1424723d13b06787
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: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c