Skip to content

Commit d0e36a6

Browse files
zhangyi089jankara
authored andcommitted
quota: correct error number in free_dqentry()
Fix the error path in free_dqentry(), pass out the error number if the block to free is not correct. Fixes: 1ccd14b ("quota: Split off quota tree handling into a separate file") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Zhang Yi <[email protected]> Cc: [email protected] Signed-off-by: Jan Kara <[email protected]>
1 parent 9bf3d20 commit d0e36a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/quota/quota_tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ static int free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot,
414414
quota_error(dquot->dq_sb, "Quota structure has offset to "
415415
"other block (%u) than it should (%u)", blk,
416416
(uint)(dquot->dq_off >> info->dqi_blocksize_bits));
417+
ret = -EIO;
417418
goto out_buf;
418419
}
419420
ret = read_blk(info, blk, buf);

0 commit comments

Comments
 (0)