mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
fe1d475888
commit
f2531f1976
2 changed files with 23 additions and 7 deletions
|
@ -39,6 +39,7 @@ struct persistent_ram_ecc_info {
|
|||
int ecc_size;
|
||||
int symsize;
|
||||
int poly;
|
||||
uint16_t *par;
|
||||
};
|
||||
|
||||
struct persistent_ram_zone {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue