1
0
mirror of https://github.com/systemd/systemd.git synced 2025-09-21 09:44:45 +03:00

Merge pull request #1012 from gentoo-root/master

sd-device: fix enumeration of devices without subsystem
This commit is contained in:
Tom Gundersen
2015-08-24 18:37:02 +02:00

View File

@@ -719,6 +719,8 @@ static int parent_add_child(sd_device_enumerator *enumerator, const char *path)
return r;
r = sd_device_get_subsystem(device, &subsystem);
if (r == -ENOENT)
return 0;
if (r < 0)
return r;