umount: log on all errors

This commit is contained in:
Lennart Poettering
2019-11-15 14:58:06 +01:00
parent 2cdd0d612d
commit 4e201419b7
+2 -2
View 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));
}