aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pstore_ram.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-03-07 12:18:33 -0800
committerKees Cook <keescook@chromium.org>2018-03-07 12:47:06 -0800
commitf2531f1976d98a7a4328da7f3cbf31b7c1927738 (patch)
treefa32c230298182b5124ebb32ab2f2de287972d47 /include/linux/pstore_ram.h
parentpstore: Select compression at runtime (diff)
downloadlinux-dev-f2531f1976d98a7a4328da7f3cbf31b7c1927738.tar.xz
linux-dev-f2531f1976d98a7a4328da7f3cbf31b7c1927738.zip
pstore/ram: Do not use stack VLA for parity workspace
Instead of using a stack VLA for the parity workspace, preallocate a memory region. The preallocation is done to keep from needing to perform allocations during crash dump writing, etc. This also fixes a missed release of librs on free. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/pstore_ram.h')
-rw-r--r--include/linux/pstore_ram.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
index 9395f06e8372..e6d226464838 100644
--- a/include/linux/pstore_ram.h
+++ b/include/linux/pstore_ram.h
@@ -39,6 +39,7 @@ struct persistent_ram_ecc_info {
int ecc_size;
int symsize;
int poly;
+ uint16_t *par;
};
struct persistent_ram_zone {