From 7573916f6388624c800bbe22a2113ac59f231d7c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Sep 2010 01:04:59 +0200 Subject: [PATCH] automount: make sure we don't crash if there's an automount unit without mount unit --- src/automount.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/automount.c b/src/automount.c index 414816b6..f7bf7f32 100644 --- a/src/automount.c +++ b/src/automount.c @@ -735,6 +735,9 @@ static bool automount_check_gc(Unit *u) { assert(a); + if (!a->mount) + return false; + return UNIT_VTABLE(UNIT(a->mount))->check_gc(UNIT(a->mount)); } -- 2.39.5