diff options
author | Kees Cook <keescook@chromium.org> | 2019-12-30 11:48:10 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-09 10:19:57 +0100 |
commit | 50d18b655bb0b7dce04d0594e9bf9390ff1a4bdf (patch) | |
tree | b00e040aa92572db63c8f9d8357f0aa543c1992b /scripts | |
parent | b578c35ed97434ab8f17efce69b2722ebf94abc8 (diff) |
pstore/ram: Fix error-path memory leak in persistent_ram_new() callers
commit 8df955a32a73315055e0cd187cbb1cea5820394b upstream.
For callers that allocated a label for persistent_ram_new(), if the call
fails, they must clean up the allocation.
Suggested-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Fixes: 1227daa43bce ("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: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions