chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
automount: make sure we don't crash if there's an automount unit without mount unit
[elogind.git]
/
src
/
automount.c
diff --git
a/src/automount.c
b/src/automount.c
index 414816b6404c6afc6d651d40efc00892aa3f0d4c..f7bf7f32d400c4d06d87c5958453c1418c087752 100644
(file)
--- 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));
}