ext2: add missing brelse() in ext2_new_inode()
authorChengguang Xu <cgxu519@zoho.com.cn>
Thu, 30 May 2019 10:10:42 +0000 (18:10 +0800)
committerJan Kara <jack@suse.cz>
Thu, 30 May 2019 11:35:32 +0000 (13:35 +0200)
There is a missing brelse of bitmap_bh in an error
path of ext2_new_inode().

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ialloc.c

index 334dea4e499d63d1c96533ed242cc263151f9ad0..fda7d3f5b4be53161b725a0b6b8a5660027242a7 100644 (file)
@@ -509,6 +509,7 @@ repeat_in_this_group:
        /*
         * Scanned all blockgroups.
         */
+       brelse(bitmap_bh);
        err = -ENOSPC;
        goto fail;
 got: