diff options
author | Kees Cook <[email protected]> | 2019-01-20 14:33:34 -0800 |
---|---|---|
committer | Kees Cook <[email protected]> | 2019-01-20 14:44:52 -0800 |
commit | 5631e8576a3caf606cdc375f97425a67983b420c (patch) | |
tree | 4c5723127cca25af506b0edc6c8d75482d3e846f /scripts/gdb/vmlinux-gdb.py | |
parent | 6a4c9ab13feeacd3072175d7d1f1fcfabbb9fc90 (diff) |
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: 35da60941e44 ("pstore/ram: add Device Tree bindings")
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions