diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-10-20 16:52:31 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-11-07 11:08:50 +0100 |
commit | 789c89935cef776ab5e8b8c5120d9c29a88ab40e (patch) | |
tree | 0c98d6c92ae446d98f961f9be28b3f2ef4b6d47e /fs/ubifs | |
parent | Linux 3.18-rc3 (diff) | |
download | linux-789c89935cef776ab5e8b8c5120d9c29a88ab40e.tar.xz linux-789c89935cef776ab5e8b8c5120d9c29a88ab40e.zip |
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index b5b593c45270..538519ee37d9 100644 --- a/fs/ubifs/file.c +++ b/fs/ubifs/file.c @@ -262,6 +262,7 @@ static int write_begin_slow(struct address_space *mapping, if (err) { unlock_page(page); page_cache_release(page); + ubifs_release_budget(c, &req); return err; } } |