]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4640f5b8ed6e4279d30addfb30d2629c7ff0312
tree7dedc0d9e48c55ab0a780cece74328cc6905fe1d
parentc6c6387e94c3865591f8c63327466f88a15b251a
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