Skip to content
Commit 8df955a3 authored by Kees Cook's avatar Kees Cook
Browse files

pstore/ram: Fix error-path memory leak in persistent_ram_new() callers



For callers that allocated a label for persistent_ram_new(), if the call
fails, they must clean up the allocation.

Suggested-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Fixes: 1227daa4 ("pstore/ram: Clarify resource reservation labels")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/lkml/20191211191353.14385-1-navid.emamdoost@gmail.com


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent d1eef1c6
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