|
@@ -1889,6 +1889,8 @@ int udf_setup_indirect_aext(struct inode *inode, int block,
|
|
|
adsize = sizeof(struct short_ad);
|
|
|
else if (UDF_I(inode)->i_alloc_type == ICBTAG_FLAG_AD_LONG)
|
|
|
adsize = sizeof(struct long_ad);
|
|
|
+ else
|
|
|
+ return -EIO;
|
|
|
|
|
|
neloc.logicalBlockNum = block;
|
|
|
neloc.partitionReferenceNum = epos->block.partitionReferenceNum;
|
|
@@ -1962,6 +1964,8 @@ int __udf_add_aext(struct inode *inode, struct extent_position *epos,
|
|
|
adsize = sizeof(struct short_ad);
|
|
|
else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG)
|
|
|
adsize = sizeof(struct long_ad);
|
|
|
+ else
|
|
|
+ return -EIO;
|
|
|
|
|
|
if (!epos->bh) {
|
|
|
WARN_ON(iinfo->i_lenAlloc !=
|