Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4151303e authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Matt Wagantall
Browse files

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.

Change-Id: Ia8b6d5a21c48cd223ca1936bd63cca65f3f5ef91
Suggested-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Git-commit: 789c89935cef776ab5e8b8c5120d9c29a88ab40e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 41e2dab4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
			}
		}