Commit 5e352342 authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[PATCH] ext3: fix error-path bh leak

It is missing a brelse() on an error path.
parent 351419e2
......@@ -600,6 +600,7 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)
inode->i_flags |= S_NOQUOTA;
inode->i_nlink = 0;
iput(inode);
brelse(bitmap_bh);
return ERR_PTR(err);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment