mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02: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:
parent
b8228f59dc
commit
d95094d4c0
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user