mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
@@ -39,6 +39,7 @@ struct persistent_ram_ecc_info {
|
||||
int ecc_size;
|
||||
int symsize;
|
||||
int poly;
|
||||
uint16_t *par;
|
||||
};
|
||||
|
||||
struct persistent_ram_zone {
|
||||
|
Reference in New Issue
Block a user