mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-15 05:57:26 +03:00
gpt-auto-generator: don't return OOM on parentless devices
This commit is contained in:
parent
9d16d0c7d0
commit
9c4495ca56
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user