pstore: Extract common arguments into structure
The read/mkfile pair pass the same arguments and should be cleared
between calls. Move to a structure and wipe it after every loop.

Signed-off-by: Kees Cook <keescook@chromium.org>
[p.zabel@pengutronix.de: ported to Barebox from Linux commit 9abdcccc3d5f]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 34e46e5 commit 114d41b69c1e0715fe09b2234559f545eb7721bf
@Kees Cook Kees Cook authored on 15 Mar 2019
Sascha Hauer committed on 18 Mar 2019
Showing 2 changed files
View
fs/pstore/platform.c
View
include/linux/pstore.h