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
1 changed files with 2 additions and 0 deletions

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;