1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +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
commit 53496ca9ad

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;