summaryrefslogtreecommitdiffstats
path: root/src/partition
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-18 18:30:18 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-18 18:41:56 +0200
commit700e0d3d87705a6ba01793d7130bbb8e6edbee16 (patch)
tree624b17d61e3b68f8d949cbfd5feba76241c2b761 /src/partition
parentblockdev: propagate one more unexpected error (diff)
downloadsystemd-700e0d3d87705a6ba01793d7130bbb8e6edbee16.tar.xz
systemd-700e0d3d87705a6ba01793d7130bbb8e6edbee16.zip
makefs: log about OOM condition
Diffstat (limited to 'src/partition')
-rw-r--r--src/partition/makefs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partition/makefs.c b/src/partition/makefs.c
index d73d67c4e8..df08a5fea6 100644
--- a/src/partition/makefs.c
+++ b/src/partition/makefs.c
@@ -54,11 +54,11 @@ static int run(int argc, char *argv[]) {
/* type and device must be copied because makefs calls safe_fork, which clears argv[] */
type = strdup(argv[1]);
if (!type)
- return -ENOMEM;
+ return log_oom();
device = strdup(argv[2]);
if (!device)
- return -ENOMEM;
+ return log_oom();
if (stat(device, &st) < 0)
return log_error_errno(errno, "Failed to stat \"%s\": %m", device);