Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pstore/ram: Avoid allocation and leak of platform data
Yue Hu noticed that when parsing device tree the allocated platform data was never freed. Since it's not used beyond the function scope, this switches to using a stack variable instead. Reported-by: Yue Hu <[email protected]> Fixes: 35da609 ("pstore/ram: add Device Tree bindings") Cc: [email protected] Signed-off-by: Kees Cook <[email protected]>
- Loading branch information