Skip to content
Commit 5631e857 authored by Kees Cook's avatar Kees Cook
Browse files

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: default avatarYue Hu <huyue2@yulong.com>
Fixes: 35da6094

 ("pstore/ram: add Device Tree bindings")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 6a4c9ab1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment