summaryrefslogtreecommitdiff
path: root/src/automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/automount.c b/src/automount.c
index 414816b640..f7bf7f32d4 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));
}