summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-12-30 11:48:10 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-09 10:19:57 +0100
commit50d18b655bb0b7dce04d0594e9bf9390ff1a4bdf (patch)
treeb00e040aa92572db63c8f9d8357f0aa543c1992b /scripts
parentb578c35ed97434ab8f17efce69b2722ebf94abc8 (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