In end_problem_latch(), ldesc need check not NULL before dereference. Signed-off-by: zhanchengbin <zhanchengbin1@xxxxxxxxxx> --- e2fsck/problem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2fsck/problem.c b/e2fsck/problem.c index f454dcb7..fd814f9e 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -2394,6 +2394,8 @@ int end_problem_latch(e2fsck_t ctx, int mask) int answer = -1; ldesc = find_latch(mask); + if (!ldesc) + return answer; if (ldesc->end_message && (ldesc->flags & PRL_LATCHED)) { clear_problem_context(&pctx); answer = fix_problem(ctx, ldesc->end_message, &pctx); -- 2.23.0