1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

udev: do not mark ari_enabled true when its sysattr value is 0 (#8870)

Fixes #8869.
This commit is contained in:
Yu Watanabe 2018-05-02 23:21:30 +09:00 committed by Lennart Poettering
parent c1c80f6c37
commit fb702dd7dd

View File

@ -287,7 +287,7 @@ static bool is_pci_multifunction(struct udev_device *dev) {
}
static bool is_pci_ari_enabled(struct udev_device *dev) {
return !!udev_device_get_sysattr_value(dev, "ari_enabled");
return streq_ptr(udev_device_get_sysattr_value(dev, "ari_enabled"), "1");
}
static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {