summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-08 20:27:11 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-08 20:27:11 +0200
commit171181bcd64d5a128f6678107d18ffa1c9388b94 (patch)
tree8ba6b7dafbdaa7a9641de1aa53225e32b6e84ba3 /src
parent481b3f9e998d1981e01915bed34f55ea99af1542 (diff)
downloadsystemd-171181bcd64d5a128f6678107d18ffa1c9388b94.tar.gz
fstab-generator: don't continue on OOM
Diffstat (limited to 'src')
-rw-r--r--src/fstab-generator/fstab-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index cd1478e54d..57fb7c3321 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -404,7 +404,7 @@ static int add_root_mount(void) {
what = fstab_node_to_udev_node(arg_root_what);
if (!what)
- log_oom();
+ return log_oom();
if (!arg_root_options)
opts = arg_root_rw > 0 ? "rw" : "ro";