summaryrefslogtreecommitdiff
path: root/src/shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdown')
-rw-r--r--src/shutdown/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c
index 11be9466a5..88dc03ed62 100644
--- a/src/shutdown/umount.c
+++ b/src/shutdown/umount.c
@@ -206,11 +206,11 @@ int swap_list_get(const char *swaps, MountPoint **head) {
swap = new0(MountPoint, 1);
if (!swap)
- return -ENOMEM;
+ return log_oom();
swap->path = strdup(source);
if (!swap->path)
- return -ENOMEM;
+ return log_oom();
LIST_PREPEND(mount_point, *head, TAKE_PTR(swap));
}