When fixing parent nodes in an extent tree, check the return value for errors and bail out if problems happen. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> Fixes-Coverity-Bug: 1193379 --- e2fsck/pass1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index 1895ee4..c52b141 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -2074,7 +2074,10 @@ fix_problem_now: pctx->str = "ext2fs_extent_delete"; return; } - ext2fs_extent_fix_parents(ehandle); + pctx->errcode = ext2fs_extent_fix_parents(ehandle); + if (pctx->errcode && + pctx->errcode != EXT2_ET_NO_CURRENT_NODE) + break; pctx->errcode = ext2fs_extent_get(ehandle, EXT2_EXTENT_CURRENT, &extent); -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html