mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
udev: do not mark ari_enabled true when its sysattr value is 0 (#8870)
Fixes #8869.
This commit is contained in:
parent
c1c80f6c37
commit
fb702dd7dd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user