pstore: Allocate records on heap instead of stack
authorKees Cook <keescook@chromium.org>
Sun, 5 Mar 2017 06:57:26 +0000 (22:57 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 7 Mar 2017 22:00:58 +0000 (14:00 -0800)
commit2a2b0acf768cfb2a9cf6c3b42b0e0eb25cbb5814
tree7dedc0d9e48c55ab0a780cece74328cc6905fe1d
parent1dfff7dd67d1a3be4d0ab4a5313f0363966bc70d
pstore: Allocate records on heap instead of stack

In preparation for handling records off to pstore_mkfile(), allocate the
record instead of reusing stack. This still always frees the record,
though, since pstore_mkfile() isn't yet keeping it.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c