summaryrefslogtreecommitdiffstats
path: root/fs/stat.c
diff options
context:
space:
mode:
authorKees Cook2019-01-20 23:33:34 +0100
committerKees Cook2019-01-20 23:44:52 +0100
commit5631e8576a3caf606cdc375f97425a67983b420c (patch)
tree4c5723127cca25af506b0edc6c8d75482d3e846f /fs/stat.c
parentpstore/ram: Fix console ramoops to show the previous boot logs (diff)
downloadkernel-qcow2-linux-5631e8576a3caf606cdc375f97425a67983b420c.tar.gz
kernel-qcow2-linux-5631e8576a3caf606cdc375f97425a67983b420c.tar.xz
kernel-qcow2-linux-5631e8576a3caf606cdc375f97425a67983b420c.zip
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 <huyue2@yulong.com> Fixes: 35da60941e44 ("pstore/ram: add Device Tree bindings") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions