]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
umount: log on all errors 14043/head
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Nov 2019 13:58:06 +0000 (14:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Nov 2019 13:58:06 +0000 (14:58 +0100)
src/shutdown/umount.c

index 11be9466a584f665bd6676998f7a481aeb27e2c4..88dc03ed6211663767273262ae010dcc09c6deb1 100644 (file)
@@ -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));
         }