mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
udf: Fix incorrect error code in udf_current_aext()
There are two places in udf_current_aext() that return -1 instead of proper error code. Fix them. Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
a3b98efdb3
commit
e5801273f9
|
|
@ -2330,10 +2330,10 @@ int udf_current_aext(struct inode *inode, struct extent_position *epos,
|
|||
ptr = epos->bh->b_data + epos->offset;
|
||||
if (check_add_overflow(sizeof(struct allocExtDesc),
|
||||
le32_to_cpu(header->lengthAllocDescs), &alen))
|
||||
return -1;
|
||||
return -EFSCORRUPTED;
|
||||
|
||||
if (alen > epos->bh->b_size)
|
||||
return -1;
|
||||
return -EFSCORRUPTED;
|
||||
}
|
||||
|
||||
switch (iinfo->i_alloc_type) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user