UBIFS: fix budget leak in error path
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 20 Oct 2014 14:52:31 +0000 (17:52 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Nov 2014 10:08:50 +0000 (12:08 +0200)
commit789c89935cef776ab5e8b8c5120d9c29a88ab40e
tree0c98d6c92ae446d98f961f9be28b3f2ef4b6d47e
parent0df1f2487d2f0d04703f142813d53615d62a1da4
UBIFS: fix budget leak in error path

We forgot to free the budget in 'write_begin_slow()' when 'do_readpage()'
fails. This patch fixes the issue.

Suggested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/file.c