ubifs: Fix memory leak in lprobs self-check
authorRichard Weinberger <richard@nod.at>
Tue, 12 Jun 2018 18:49:45 +0000 (20:49 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Aug 2018 22:06:15 +0000 (00:06 +0200)
commiteef19816ada3abd56d9f20c88794cc2fea83ebb2
tree07bc63a188ebd12f52fd0f92103a356acef807f6
parent25677478474a91fa1b46f19a4a591a9848bca6fb
ubifs: Fix memory leak in lprobs self-check

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>
fs/ubifs/lprops.c