From dc1f73802bd76bea60b9c93eb24a1d26472d2723 Mon Sep 17 00:00:00 2001 From: Chengguang Xu Date: Thu, 30 May 2019 18:10:42 +0800 Subject: ext2: add missing brelse() in ext2_new_inode() There is a missing brelse of bitmap_bh in an error path of ext2_new_inode(). Signed-off-by: Chengguang Xu Signed-off-by: Jan Kara --- fs/ext2/ialloc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/ext2') diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 334dea4e499d..fda7d3f5b4be 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -509,6 +509,7 @@ repeat_in_this_group: /* * Scanned all blockgroups. */ + brelse(bitmap_bh); err = -ENOSPC; goto fail; got: -- cgit v1.2.3-55-g7522