mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 15:43:08 -04:00
udf: Fix bh leak for unallocated space entries
When processing unallocated space entries we didn't properly release the inode bh. Fix it. Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -1486,6 +1486,7 @@ static int udf_read_inode(struct inode *inode, bool hidden_inode)
|
||||
memcpy(iinfo->i_data,
|
||||
bh->b_data + sizeof(struct unallocSpaceEntry),
|
||||
bs - sizeof(struct unallocSpaceEntry));
|
||||
brelse(bh);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user