mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +03:00
automount: make sure we don't crash if there's an automount unit without mount unit
This commit is contained in:
parent
dacdf15367
commit
7573916f63
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user