summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorTomasz Torcz <tomek@pipebreaker.pl>2014-03-12 19:25:11 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-12 23:36:21 +0100
commit9c4495ca561624c2f0085507dd1288ed5f1247c5 (patch)
tree9c304464644015afbd7dbc884facee489fda1ae2 /src/gpt-auto-generator
parent9d16d0c7d0b05e3ff278c3c95e1f2f871f348dd3 (diff)
gpt-auto-generator: don't return OOM on parentless devices
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index e487f64386..19c5eea9de 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -395,7 +395,7 @@ static int enumerate_partitions(dev_t devnum) {
parent = udev_device_get_parent(d);
if (!parent)
- return log_oom();
+ return 0;
/* Does it have a devtype? */
devtype = udev_device_get_devtype(parent);