diff options
author | Richard Weinberger <richard@nod.at> | 2018-06-12 20:49:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-09 20:01:24 +0200 |
commit | 0d1694b185ca2e7d4b0491ea2ce135b391878eea (patch) | |
tree | 29dd937dbb0693a10d765a04a950332ca9290e77 /fs/ramfs | |
parent | a56a15432ac808d63d7c3b24fa81dfa6afbab067 (diff) |
ubifs: Fix memory leak in lprobs self-check
commit eef19816ada3abd56d9f20c88794cc2fea83ebb2 upstream.
Allocate the buffer after we return early.
Otherwise memory is being leaked.
Cc: <stable@vger.kernel.org>
Fixes: 1e51764a3c2a ("UBIFS: add new flash file system")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ramfs')
0 files changed, 0 insertions, 0 deletions