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:
commit
53496ca9ad
@ -719,6 +719,8 @@ static int parent_add_child(sd_device_enumerator *enumerator, const char *path)
|
|||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = sd_device_get_subsystem(device, &subsystem);
|
r = sd_device_get_subsystem(device, &subsystem);
|
||||||
|
if (r == -ENOENT)
|
||||||
|
return 0;
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user