From: Lennart Poettering Date: Fri, 15 Nov 2019 13:58:06 +0000 (+0100) Subject: umount: log on all errors X-Git-Tag: v244-rc1~43^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e201419b71e9f53f39b3e9154a552a28e881f3f;p=thirdparty%2Fsystemd.git umount: log on all errors --- diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index 11be9466a58..88dc03ed621 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)); }